2eb7ae4f0c
* Use hipExtLaunchKernelGGL in dispatchlatency sample * Let it run on NVCC path too * Refactoring * Add test_kernel source * Remove ResultDB * Remove error checks
20 строки
390 B
Makefile
20 строки
390 B
Makefile
HIP_PATH?= $(wildcard /opt/rocm/hip)
|
|
ifeq (,$(HIP_PATH))
|
|
HIP_PATH=../../..
|
|
endif
|
|
HIPCC=$(HIP_PATH)/bin/hipcc -std=c++11
|
|
|
|
EXE=hipDispatchLatency
|
|
|
|
CXXFLAGS = -O3
|
|
|
|
all: test_kernel.code ${EXE}
|
|
|
|
$(EXE): hipDispatchLatency.cpp
|
|
$(HIPCC) $(CXXFLAGS) hipDispatchLatency.cpp -o $@
|
|
|
|
test_kernel.code: test_kernel.cpp
|
|
$(HIP_PATH)/bin/hipcc --genco $(GENCO_FLAGS) $^ -o $@
|
|
clean:
|
|
rm -f *.o $(EXE)
|