Skip to content

Commit f184147

Browse files
[amdgpu] Default to 1.0, instead of unspecified, for dynamic hsa (#74098)
The plugin checks the values of HSA_AMD_INTERFACE_VERSION_* so we now set them to something safe in the header.
1 parent 76f78ec commit f184147

File tree

1 file changed

+9
-0
lines changed
  • openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa

1 file changed

+9
-0
lines changed

openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414

1515
#include "hsa.h"
1616

17+
/* Using this header means we do not know what version library will be linked.
18+
Until such point as a CMake level override is requested, default to the
19+
minimum. */
20+
/*
21+
* - 1.0 - initial version
22+
*/
23+
#define HSA_AMD_INTERFACE_VERSION_MAJOR 1
24+
#define HSA_AMD_INTERFACE_VERSION_MINOR 0
25+
1726
#ifdef __cplusplus
1827
extern "C" {
1928
#endif

0 commit comments

Comments
 (0)