diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 3616aa3..b7a1887 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -6,7 +6,7 @@ "${workspaceFolder}/**" ], "defines": [], - "compilerPath": "/opt/cuda/bin/nvcc", + "compilerPath": "/usr/local/cuda-10.0/bin/nvcc", "cStandard": "c11", "cppStandard": "c++14", "configurationProvider": "ms-vscode.makefile-tools" diff --git a/Presentazione CUDA.pdf b/Presentazione CUDA.pdf new file mode 100644 index 0000000..d9a2b75 Binary files /dev/null and b/Presentazione CUDA.pdf differ diff --git a/atax/Makefile b/atax/Makefile index eb849f0..f90140d 100644 --- a/atax/Makefile +++ b/atax/Makefile @@ -16,13 +16,13 @@ CXXFLAGS+= ${EXTRA_CXXFLAGS} # CUDA_HOME:=/usr/local/cuda-10.0 CUDA_HOME:=/opt/cuda # Specify the directory of the nvc compiler -NVCC:=$(CUDA_HOME)/bin/nvcc +NVCC:=/usr/local/cuda-10.0/bin/nvcc # Specify the flags for the nvc compiler NVCFLAGS:=$(CXXFLAGS) $(NVOPT) # Optimize for @Steffo's NVIDIA GTX 1070 -NVCFLAGS+= -arch=compute_61 -NVCFLAGS+= -code=sm_61 +# NVCFLAGS+= -arch=compute_61 +# NVCFLAGS+= -code=sm_61 %.elf: %.cu.o polybench.cu.o