Skip to content

Commit 3c9c262

Browse files
committed
Makefile: Add fallback to /opt/rocm home
1 parent 07230fd commit 3c9c262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ ifndef ROCM_TARGET
2121
$(error ERROR: ROCM_TARGET not set. Call make with ROCM string (see https://www.llvm.org/docs/AMDGPUUsage.html#processors), for example: make hip ROCM_TARGET=gfx1030)
2222
ROCM_TARGET:=
2323
endif
24+
else
25+
$(warning WARNING: Unable to find hipcc in path, fallback to ROCM_HOME /opt/rocm)
26+
ROCM_HOME:=/opt/rocm
2427
endif
2528

2629

0 commit comments

Comments
 (0)