mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-25 09:34:23 +00:00
Merge branch '2-cuda' of https://github.com/Steffo99/unimore-hpc-assignments into 2-cuda
This commit is contained in:
commit
9182398c9d
3 changed files with 4 additions and 4 deletions
2
.vscode/c_cpp_properties.json
vendored
2
.vscode/c_cpp_properties.json
vendored
|
@ -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
BIN
Presentazione CUDA.pdf
Normal file
Binary file not shown.
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue