Posts

Showing posts from January, 2019

NVIDIA graphic card and CUDA architecture pairs

Matching SM architectures (CUDA arch and CUDA gencode) for various NVIDIA cards I’ve seen some confusion regarding NVIDIA’s nvcc sm flags and what they’re used for: When compiling with NVCC, the arch flag (‘ -arch ‘) specifies the name of the NVIDIA GPU architecture that the CUDA files will be compiled for. Gencodes (‘ -gencode ‘) allows for more PTX generations, and can be repeated many times for different architectures. When should different ‘gencodes’ or ‘cuda arch’ be used? When you compile CUDA code, you should always compile only one ‘ -arch ‘ flag that matches your most used GPU cards. This will enable faster runtime, because code generation will occur during compilation. If you only mention ‘ -gencode ‘, but omit the ‘ -arch ‘ flag, the GPU code generation will occur on the JIT compiler by the CUDA driver. When you want to speed up CUDA compilation, you want to reduce the amount of irrelevant ‘ -gencode ‘ flags. However, sometimes you may wish to have better CUDA back...

Macbook Speed up for any MacOS version including Mojave

Image
Speed up your MacBook Original author of post - Matthew Palmer Terminal Tweaks You can apply each of the following tweaks with the Terminal. Open Terminal by typing Command-Space to trigger Spotlight then search for ‘Terminal’. For each step in the tweak, copy the command formatted like this and paste it into Terminal Hit Return to execute that command Repeat for subsequent commands Creating a Super Minimal Desktop Here’s my super minimal Desktop setup, with hidden Desktop icons, a tidy Dock, hidden menu bar icons, and a menu bar that blends in with the background. Show and Hide Desktop Icons To hide desktop icons, copy and paste each of these into Terminal defaults write com.apple.finder CreateDesktop false killall Finder To show desktop icons again, defaults write com.apple.finder CreateDesktop true killall Finder Show and Hide Hidden Files in Finder To show hidden files in Finder, you can use the keyboard shortcut Command-Shift-. in macOS Sier...