Skip to content

Commit

Permalink
Fix cpack on SLES (#324)
Browse files Browse the repository at this point in the history
Update lib/core/gpu.cpp

- use const std::array instead of constexpr std::array due to internal compiler errors on systems with older GCC compilers
  • Loading branch information
jrmadsen committed Jan 10, 2024
1 parent 5de4163 commit adefde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lib/core/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ add_hip_device_metadata(ArchiveT& ar)
OMNITRACE_SERIALIZE_HIP_DEVICE_PROP(asicRevision)
# endif

constexpr auto _compute_mode_descr = std::array<const char*, 6>{
const auto _compute_mode_descr = std::array<const char*, 6>{
"Default (multiple host threads can use ::hipSetDevice() with device "
"simultaneously)",
"Exclusive (only one host thread in one process is able to use "
Expand Down

0 comments on commit adefde7

Please sign in to comment.