Skip to content

Commit 4f2a4b1

Browse files
authored
SWDEV-527731 - [Ubertrace] OpenCL driver reports wrong Instrumentation API Version (#211)
1 parent e5ce544 commit 4f2a4b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rocclr/cmake/ROCclrPAL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
set(PAL_CLIENT "OCL")
2222

23-
set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 910)
23+
set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 916)
2424
set(GPUOPEN_CLIENT_INTERFACE_MAJOR_VERSION 42)
2525
set(GPUOPEN_CLIENT_INTERFACE_MINOR_VERSION 0)
2626
set(AMD_DK_ROOT $ENV{DK_ROOT})

rocclr/device/pal/paldevice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,7 @@ bool Device::init() {
13901390
info.pSettingsPath = "OCL";
13911391
info.maxSvmSize = static_cast<Pal::gpusize>(OCL_SET_SVM_SIZE * Mi);
13921392
info.clientApiId = (amd::IS_HIP) ? Pal::ClientApi::Hip : Pal::ClientApi::OpenCl;
1393+
info.instrApiVer = RgpSqttInstrumentationApiVersion;
13931394

13941395
if (IS_LINUX) {
13951396
//! @note: Linux may have a deadlock if runtime will attempt to reserve

0 commit comments

Comments
 (0)