1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-22 08:04:25 +00:00

cambiato path nvcc e commentate ottimizzazioni di steffo nel makefile per usare jetson nano

This commit is contained in:
FABIO ZANICHELLI 2022-12-08 09:56:54 -05:00
parent 202f02f7d2
commit 6505d561a4
2 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"

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