Skip to content

Commit 806a15e

Browse files
committed
Removed 'bc' dependencies
1 parent 1d2334a commit 806a15e

File tree

52 files changed

+52
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+52
-52
lines changed

Chapter01/01_cuda_introduction/01_hello_world/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=hello_world
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter01/01_cuda_introduction/02_vector_addition/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=vector_addition vector_addition_blocks vector_addition_threads vector_add
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter02/02_memory_overview/01_sgemm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=sgemm
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter02/02_memory_overview/02_vector_addition/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=vector_addition_gpu_thread_block
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter02/02_memory_overview/03_aos_soa/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=aos soa
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter02/02_memory_overview/04_matrix_transpose/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=matrix_transpose conflict_solved
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter02/02_memory_overview/05_image_scaling/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=image_scaling
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter02/02_memory_overview/06_unified_memory/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=unified_simple unified_initialized unified_prefetch unified_64align
66
INCLUDES= -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo
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

Chapter03/03_cuda_thread_programming/01_warp_and_thread_block/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NVCC=${CUDA_PATH}/bin/nvcc -ccbin ${HOST_COMPILER}
55
INCLUDES= -I${CUDA_PATH}/samples/common/inc
66
NVCC_FLAGS=-m64 -lineinfo
77

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

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

Chapter03/03_cuda_thread_programming/02_cuda_occupancy/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TARGET=sgemm
66
INCLUDES = -I${CUDA_PATH}/samples/common/inc
77
NVCC_FLAGS=-m64 -lineinfo --resource-usage
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)