Compiling for Fermi To compile for Fermi, use the following compiler option: -gencode arch=compute_20,code=sm_20