Files
rocm-systems/projects/rccl/tools/EmptyKernelTest/Makefile
T

忽略 .git-blame-ignore-revs 中的修訂。點擊 這裡 以繞過並查看正常的 Blame 視圖。

27 行
536 B
Makefile
原始文件 標準檢視 歷史記錄

ROCM_PATH ?= /opt/rocm
CUDA_PATH ?= /usr/local/cuda
HIPCC=$(ROCM_PATH)/bin/hipcc
NVCC=$(CUDA_PATH)/bin/nvcc
# Compile TransferBenchCuda if nvcc detected
ifeq ("$(shell test -e $(NVCC) && echo found)", "found")
EXE=./EmptyKernelTestCuda
else
EXE=./EmptyKernelTest
endif
all: $(EXE)
./EmptyKernelTest: EmptyKernelTest.cpp
$(HIPCC) EmptyKernelTest.cpp -o EmptyKernelTest
./EmptyKernelTestCuda: EmptyKernelTest.cpp
$(NVCC) EmptyKernelTest.cpp -x cu -o EmptyKernelTestCuda
clean:
rm -f ./EmptyKernelTest ./EmptyKernelTestCuda