nvcc axpy.cu -o axpy
or
clang++ axpy.cu -o axpy --cuda-gpu-arch=sm_61 -L/usr/local/cuda/lib64 -lcudart_static -ldl -lrt -pthread
clang++ -std=c++11 -emit-llvm -c -S axpy.cu --cuda-gpu-arch=sm_61
clang++ -flegacy-pass-manager -Xclang -load -Xclang build/Pass/libSkeletonPass.* axpy.cu -o axpy --cuda-gpu-arch=sm_61 -L/usr/local/cuda-11.8/lib64/ -lcudart_static -ldl -lrt -pthread
clang++ -flegacy-pass-manager -Xclang -load -Xclang build/Pass/libSkeletonPass.* -std=c++11 -emit-llvm -c -S axpy.cu --cuda-gpu-arch=sm_61