HIP: Use 'rocm_agent_enumerator' to determine CMAKE_HIP_ARCHITECTURES

This commit is contained in:
Zack Galbreath
2021-09-15 16:33:41 -04:00
committed by Brad King
parent 64aac043ee
commit 735f41fc2d
2 changed files with 36 additions and 4 deletions

View File

@@ -5,7 +5,8 @@ CMAKE_HIP_ARCHITECTURES
Default value for :prop_tgt:`HIP_ARCHITECTURES` property of targets.
This is initialized to the default architecture chosen by the compiler.
This is initialized to the architectures reported by ``rocm_agent_enumerator``,
if available, and otherwise to the default chosen by the compiler.
This variable is used to initialize the :prop_tgt:`HIP_ARCHITECTURES` property
on all targets. See the target property for additional information.