Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b24aa9f

Browse files
committed
Remove bc dependencies
1 parent cb028d5 commit b24aa9f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Chapter10/10_deep_learning/01_ann/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
CUDA_PATH=/usr/local/cuda
2-
# CUDA_PATH=/cm/extra/apps/CUDA.linux86-64/10.0.130_410.48
32
HOST_COMPILER ?= g++
43
NVCC=${CUDA_PATH}/bin/nvcc -ccbin ${HOST_COMPILER}
54
TARGET=train
65

76
INCLUDES = -I${CUDA_PATH}/samples/common/inc -I$(CUDA_PATH)/include
87
NVCC_FLAGS=-G --resource-usage -Xcompiler -rdynamic -Xcompiler -fopenmp -rdc=true -lnvToolsExt
98

10-
IS_CUDA_11:=$(shell echo `$(NVCC) --version | grep compilation | grep -Eo -m 1 '[0-9]+.[0-9]' | head -1` \>= 11.0 | bc)
9+
IS_CUDA_11:=${shell expr `$(NVCC) --version | grep compilation | grep -Eo -m 1 '[0-9]+.[0-9]' | head -1` \>= 11.0}
1110

1211
# Gencode argumentes
1312
SMS = 35 37 50 52 60 61 70 75

Chapter10/10_deep_learning/02_cnn/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=train
66
INCLUDES = -I${CUDA_PATH}/samples/common/inc -I$(CUDA_PATH)/include
77
NVCC_FLAGS=-G --resource-usage -Xcompiler -rdynamic -Xcompiler -fopenmp -rdc=true -lnvToolsExt
88

9-
IS_CUDA_11:=$(shell echo `$(NVCC) --version | grep compilation | grep -Eo -m 1 '[0-9]+.[0-9]' | head -1` \>= 11.0 | bc)
9+
IS_CUDA_11:=${shell expr `$(NVCC) --version | grep compilation | grep -Eo -m 1 '[0-9]+.[0-9]' | head -1` \>= 11.0}
1010

1111
# Gencode argumentes
1212
SMS = 35 37 50 52 60 61 70 75

0 commit comments

Comments
 (0)