From 72aa0e70eeea93081ad9cfd1b6316f9b3c3144ea Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 13 Apr 2017 12:17:47 -0400 Subject: [PATCH] P4 to Git Change 1398063 by lmoriche@lmoriche_opencl_dev2 on 2017/04/13 12:12:33 SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment - Make it possible to build with libstdc++ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#19 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/memfile.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#31 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#19 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#63 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#22 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#126 edit ... //depot/stg/opencl/drivers/opencl/runtime/thread/semaphore.cpp#9 edit --- opencl/api/opencl/amdocl/cl_svm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencl/api/opencl/amdocl/cl_svm.cpp b/opencl/api/opencl/amdocl/cl_svm.cpp index 232eb12202..e7bd46417a 100644 --- a/opencl/api/opencl/amdocl/cl_svm.cpp +++ b/opencl/api/opencl/amdocl/cl_svm.cpp @@ -137,7 +137,7 @@ RUNTIME_ENTRY_RET_NOERRCODE(void*, clSVMAlloc, ( bool sizePass = false; cl_device_svm_capabilities combinedSvmCapabilities = 0; const cl_uint hostAddressBits = LP64_SWITCH(32, 64); - cl_uint minContextAlignment = UINT_MAX; + cl_uint minContextAlignment = std::numeric_limits::max(); std::vector::const_iterator it; for (it = devices.begin(); it != devices.end(); ++it) { cl_device_svm_capabilities svmCapabilities =