Fix compile error.
Before this change, there is compile error in my build computer. The cause is that /opt/rocm/include has an older version of CL header files.
When compiling, we should use header files from this opencl source code folders first.
This fix changes the order of include directories. Search the header files inside this opencl source code folders first.
Change-Id: I3420a634ed9e1b38b8e5201a0a39a36d61f97986
[ROCm/clr commit: a400051d3a]
Use standard cmake option handling, and switch to standard ON/OFF for
boolean. Try to maintain compatability with the "yes" check that build
scripts are now using.
Change-Id: Ia932e93f818c0897a87bfc49b070e36c7be7dd74
[ROCm/clr commit: aa0c163066]
7eda01ba broke this. This is still mostly a commit order hack until
the ROCclr change is submitted.
Change-Id: I43762963dbc66f1dc83916d2f0e9c90e4fcbf7c1
[ROCm/clr commit: 9f9d35ad86]
Move libOpenCL.so from rocm-opencl-dev package to rocm-opencl.
Having the libOpenCL.so alone and that too just a symlink pointing
to a file in another package is not the right way.
Adding a symlink for libOpenCL... to rocm/lib will make package
deployment easier.
Change-Id: Icc98d2280253c8a485ef906e97fc75129ad6d064
[ROCm/clr commit: e43d427cdd]
Maintain compatability with current hardcoded scheme for now for
commit order convenience.
Change-Id: I0b8299fceab1cc405ae5f26a129f2f1ea3d56773
[ROCm/clr commit: 585741a040]
This added an unnecessary level of indirection, and also didn't
automatically pull in interface dependencies from the linked targets.
Change-Id: I7371ab3c184f6045947a96c8a393f2e3452fc5c1
[ROCm/clr commit: 5943e4d93e]
- The entry removed only when the installation is NOT /opt/rocm
Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: Ib90f89e63cffb4ae8f628af15387a49bb6511a5f
[ROCm/clr commit: 5f710a5ecb]
Updates cl2.hpp and cl.hpp to handle case of platform with zero devices without error.
Change-Id: I6190c65ebf894b3a26579c54e96881c334346358
[ROCm/clr commit: 0779b034c4]
The D3D interop APIs are now declared in the CL headers, so we need to remove our declarations.
The CL headers also automatically include the D3D headers, which need to be included in a specific order (11 -> 10 -> 9), hence why the includes needed to be reshuffled.
Change-Id: I9bd37ceabec82e8bebd1d9c1a5a672ffc95c41d8
[ROCm/clr commit: c4a02ce16f]
Update the packaging code to be CMake 3.5 compatible for CI. Create two
packages rocm-opencl and rocm-opencl-dev on Ubuntu and CentOS. Add
proper versioning into naming.
Change-Id: I116081b7f6f7efa4be43ab3a66e4d3bff0589298
[ROCm/clr commit: b3d035b1dc]
SWDEV-218016 - There is a bug in the OCL/DX interop
- Initialize event query value to FALSE and correct the loop condition to make sure query waits for the end.
http://ocltc.amd.com/reviews/r/18447/
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11.cpp#28 edit
[ROCm/clr commit: 0a27603178]
SWDEV-207835 - Implement uniform package versioning for cmake version of OpenCL.
Need to generate the same style of packages name as the Makefile version does.
Affected files ...
... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#29 edit
[ROCm/clr commit: 9a4d0fea49]
SWDEV-198863 - Options for hip-clang-vdi path to provide the chicken bits, or functional equivalents to HCC_DB (phase 1)
1. The log macros is turned off for release build. So log functions has zero impact to release build.
2. The log macros have level, mask, condition control. So we can have more control to avoid log flooding.
I also adjusted some existing log to use new log functions.
1. To excercise and test the new log functions.
2. To improve performance slightly.
3. The change is mainly for HIP-ROCM, we can move more in next phases for PAL or ORCA.
4. I make these log feature unavailable for release build. We can revert to old log functions for release build in a case by case method.
Tests:
1. http://ocltc.amd.com:8111/viewModification.html?modId=128289&personal=true&tab=vcsModificationBuildshttp://ocltc.amd.com:8111/viewModification.html?modId=128358&personal=true&tab=vcsModificationBuilds
2. release build, run hip program, there is no log
3. fastdebug build, run hip program,
export LOG_LEVEL=3
export GPU_LOG_MASK=4294967295
There was a lot of logs.
4. fastdebug build, run hip program,
export LOG_LEVEL=2
export GPU_LOG_MASK=4294967295
There was no logs.
5. fastdebug build, run hip program,
export LOG_LEVEL=3
export GPU_LOG_MASK=4294967294
There was much less logs.
6. fastdebug build, run hip program,
export LOG_LEVEL=3
export GPU_LOG_MASK=47102
There was even much less logs. The logs was expected according to the mask.
7. Tested step 2 to 6 similarily in Windows and Linux
ReviewBoard: http://ocltc.amd.com/reviews/r/18215
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#46 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hiprtc_internal.hpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/comgrctx.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#68 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#137 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#91 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#100 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/runtime.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/debug.hpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#323 edit
[ROCm/clr commit: 1eb26b28bb]