|
1 | 1 | /* |
2 | | -// Copyright (c) 2019-2025 Ben Ashbaugh |
| 2 | +// Copyright (c) 2025-2026 Ben Ashbaugh |
3 | 3 | // |
4 | 4 | // SPDX-License-Identifier: MIT |
5 | 5 | */ |
@@ -102,7 +102,7 @@ int main( |
102 | 102 | int platformIndex = 0; |
103 | 103 | int deviceIndex = 0; |
104 | 104 |
|
105 | | - std::string fileName(sizeof(void*) == 8 ? "sample_kernel64.spv" : "sample_kernel32.spv"); |
| 105 | + std::string fileName(sizeof(void*) == 8 ? "device_global64.spv" : "device_global32.spv"); |
106 | 106 | std::string buildOptions; |
107 | 107 |
|
108 | 108 | { |
@@ -216,13 +216,13 @@ int main( |
216 | 216 | cl_int errorCode = CL_SUCCESS; |
217 | 217 | size_t gvsize = 0; void* gvptr = nullptr; |
218 | 218 | errorCode = clGetDeviceGlobalVariablePointerINTEL( |
219 | | - device(), program(), "uid67f037ed289236e5____ZL2dg", &gvsize, &gvptr); |
220 | | - printf("clGetDeviceGlobalVariablePointerINTEL with uid67f037ed289236e5____ZL2dg returned %d: %zu %p\n", errorCode, gvsize, gvptr); |
| 219 | + device(), program(), "HostAccessName", &gvsize, &gvptr); |
| 220 | + printf("clGetDeviceGlobalVariablePointerINTEL with HostAccessName returned %d: %zu %p\n", errorCode, gvsize, gvptr); |
221 | 221 |
|
222 | 222 | gvsize = 0; gvptr = nullptr; |
223 | 223 | errorCode = clGetDeviceGlobalVariablePointerINTEL( |
224 | | - device(), program(), "_ZL2dg", &gvsize, &gvptr); |
225 | | - printf("clGetDeviceGlobalVariablePointerINTEL with _ZL2dg returned %d: %zu %p\n", errorCode, gvsize, gvptr); |
| 224 | + device(), program(), "ExportName", &gvsize, &gvptr); |
| 225 | + printf("clGetDeviceGlobalVariablePointerINTEL with ExportName returned %d: %zu %p\n", errorCode, gvsize, gvptr); |
226 | 226 |
|
227 | 227 | cl_unified_shared_memory_type_intel gvtype = 0; |
228 | 228 | errorCode = clGetMemAllocInfoINTEL( |
|
0 commit comments