- fatbin method
nvcc -o matSumKernel.fatbin matSumKernel.cu -lcuda nvcc -o drivertest.o -c drivertest.cpp -lcuda nvcc -o drivertest drivertest.o -lcuda ./drivertest
- ptx
nvcc -o matSumKernel.ptx -ptx matSumKernel.cu -lcuda nvcc -o drivertest.o -c drivertest.cpp -lcuda nvcc -o drivertest drivertest.o -lcuda ./drivertest