Skip to content

Commit 9cdeb3f

Browse files
committed
remove rocm option since switchchannel is not supported on rocm
1 parent 5e75a8a commit 9cdeb3f

File tree

1 file changed

+2
-9
lines changed
  • examples/tutorials/05-switch-channel

1 file changed

+2
-9
lines changed

examples/tutorials/05-switch-channel/Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
CUDA_HOME ?= /usr/local/cuda
2-
ROCM_HOME ?= /opt/rocm
32

4-
# Check if nvcc exists, otherwise use hipcc
5-
ifeq ($(shell which $(CUDA_HOME)/bin/nvcc 2>/dev/null),)
6-
COMPILER := $(ROCM_HOME)/bin/hipcc
7-
ARCH_FLAG := -D__HIP_PLATFORM_AMD__=1
8-
else
9-
COMPILER := $(CUDA_HOME)/bin/nvcc
10-
ARCH_FLAG := -arch=native
11-
endif
3+
COMPILER := $(CUDA_HOME)/bin/nvcc
4+
ARCH_FLAG := -arch=native
125

136
TARGET = bidir_switch_channel
147
SRC = bidir_switch_channel.cu

0 commit comments

Comments
 (0)