Skip to content

Commit

Permalink
Update lib/core/gpu.cpp
Browse files Browse the repository at this point in the history
- fix ifdef on OMNITRACE_HIP_VERSION
  • Loading branch information
jrmadsen committed Jan 10, 2024
1 parent c11f44c commit 3c8245b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/lib/core/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ add_hip_device_metadata(ArchiveT& ar)

ar.startNode();

# if OMNITRACE_HIP_VERSION < 6000
# if OMNITRACE_HIP_VERSION < 60000
using intvec_t = std::vector<int>;
namespace cereal = tim::cereal;
using cereal::make_nvp;
Expand All @@ -311,7 +311,7 @@ add_hip_device_metadata(ArchiveT& ar)
OMNITRACE_SERIALIZE_HIP_DEVICE_PROP(totalConstMem)
OMNITRACE_SERIALIZE_HIP_DEVICE_PROP(clockRate)

# if OMNITRACE_HIP_VERSION >= 5000
# if OMNITRACE_HIP_VERSION >= 50000
OMNITRACE_SERIALIZE_HIP_DEVICE_PROP(memoryClockRate)
OMNITRACE_SERIALIZE_HIP_DEVICE_PROP(memoryBusWidth)
OMNITRACE_SERIALIZE_HIP_DEVICE_PROP(l2CacheSize)
Expand Down

0 comments on commit 3c8245b

Please sign in to comment.