1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-22 08:04:25 +00:00
This commit is contained in:
Caterina Gazzotti 2022-12-11 09:50:22 -05:00
commit 9182398c9d
3 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
"${workspaceFolder}/**" "${workspaceFolder}/**"
], ],
"defines": [], "defines": [],
"compilerPath": "/opt/cuda/bin/nvcc", "compilerPath": "/usr/local/cuda-10.0/bin/nvcc",
"cStandard": "c11", "cStandard": "c11",
"cppStandard": "c++14", "cppStandard": "c++14",
"configurationProvider": "ms-vscode.makefile-tools" "configurationProvider": "ms-vscode.makefile-tools"

BIN
Presentazione CUDA.pdf Normal file

Binary file not shown.

View file

@ -16,13 +16,13 @@ CXXFLAGS+= ${EXTRA_CXXFLAGS}
# CUDA_HOME:=/usr/local/cuda-10.0 # CUDA_HOME:=/usr/local/cuda-10.0
CUDA_HOME:=/opt/cuda CUDA_HOME:=/opt/cuda
# Specify the directory of the nvc compiler # 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 # Specify the flags for the nvc compiler
NVCFLAGS:=$(CXXFLAGS) $(NVOPT) NVCFLAGS:=$(CXXFLAGS) $(NVOPT)
# Optimize for @Steffo's NVIDIA GTX 1070 # Optimize for @Steffo's NVIDIA GTX 1070
NVCFLAGS+= -arch=compute_61 # NVCFLAGS+= -arch=compute_61
NVCFLAGS+= -code=sm_61 # NVCFLAGS+= -code=sm_61
%.elf: %.cu.o polybench.cu.o %.elf: %.cu.o polybench.cu.o