mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-21 23:54:25 +00:00
cambiato path nvcc e commentate ottimizzazioni di steffo nel makefile per usare jetson nano
This commit is contained in:
parent
202f02f7d2
commit
6505d561a4
2 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}/**"
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "/opt/cuda/bin/nvcc",
|
||||
"compilerPath": "/usr/local/cuda-10.0/bin/nvcc",
|
||||
"cStandard": "c11",
|
||||
"cppStandard": "c++14",
|
||||
"configurationProvider": "ms-vscode.makefile-tools"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue