Skip to content

Commit b371894

Browse files
committed
Add rocm path to find_package
When installed via deb, rocm is installed into `/opt/rocm` and wasn't included in $PATH. Include this directory as a possible location to find `ROCM_AGENT_ENUMERATOR`.
1 parent 3fdf7e3 commit b371894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindRocmAgentEnumerator.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# rocm_agent_enumerator is found.
1010
#
1111

12-
find_program(ROCM_AGENT_ENUMERATOR NAMES rocm_agent_enumerator)
12+
find_program(ROCM_AGENT_ENUMERATOR NAMES rocm_agent_enumerator PATHS /opt/rocm/bin)
1313

1414
if(ROCM_AGENT_ENUMERATOR)
1515
set(ROCM_AGENT_ENUMERATOR_FOUND TRUE)

0 commit comments

Comments
 (0)