Commit Graph

25 Commits

Author SHA1 Message Date
Konstantin Zhuravlyov 511065e301 SWDEV-320486 - Correctly set HSAIL_ELFTOOLCHAIN_DIR
Change-Id: Icb39b376eaf3a8132b210bd1bd4eeecaa97bea9d
2022-01-26 18:38:25 -05:00
German Andryeyev 5f98028a48 SWDEV-316665 - Add ATI_BITS_32 define to cmake build
Some logic in ROCclr relies on ATI_BITS_32 define

Change-Id: I2f0ef535e8d7717f9aa8646bdc80c09880bd2bee
2022-01-06 13:14:19 -05:00
Julia Jiang 376ea1e293 SWDEV-308644 - reorganize extra blit kernel in PAL stack
Change-Id: I9d853e8d417ef75b522184d83646ec4b9fa8669b
2021-12-07 14:55:20 -05:00
Julia Jiang f5c9ad5b1d SWDEV-308644 - merge roc blit kernels
Change-Id: I378e511959fe17c03fa45066022e9670a4d181f0
2021-11-25 10:07:51 -05:00
Julia Jiang ef3d6f7b28 SWDEV-308644 - update blit kernel setup in rocm
Change-Id: Iaa9ff97b3ed7d379189c359696be932a83cf203c
2021-11-15 13:28:07 -05:00
Jason Tang 5549007856 SWDEV-1 - switch to C++17
Change-Id: I7e6a28a20ca163fe86dd6d53b031e9bb6f9b22c9
2021-09-09 10:16:14 -04:00
Vladislav Sytchenko dd23379ac8 SWDEV-301636 - Manually find NUMA
CMake does not provide a way to query the NUMA library, hence we need
to find it manually.

Change-Id: I370b286acdee75cbebc21340da3c432c79f8ffa7
2021-09-08 15:04:15 -04:00
Jason Tang 7f83bcdb45 SWDEV-1 - Disable OpenCL support for gfx8 in ROCm path
Change-Id: Ie1e0c0d6273edf6b734909447c2a08252cba305b
2021-08-31 12:48:47 -04:00
Vladislav Sytchenko ce9182e62b SWDEV-273235 - Add ROCclrCompilerOptions cmake module
This module will be used to add any specific compiler options to ROCclr
and it's clients.

Currently it only adds a workaround to remove the MSVC flag /GR, which
is added by default CMake <3.20. This resolves the conflict of PAL
adding /GR-.

Change-Id: If83adb271bcec86812a6e9de940da3920fc75393
2021-08-22 23:56:08 -07:00
Jason Tang f165737096 SWDEV-296911 - Enable clgl interop for both MesaGL and OrcaGL
Change-Id: Ie3ad85a8335b1fc751812c09bb0cd30aad38dcae
2021-08-22 23:56:08 -07:00
Vladislav Sytchenko a2612343d5 SWDEV-273235 - [PAL] Ignore system headers on Linux
CMake always searches system paths for specified files before resorting
to the hints we give it. We should not be using elf and GL headers
from /usr/include.

Change-Id: I2172ce3da9cc101ced63e22d95ecc031b94f0a67
2021-08-22 23:56:07 -07:00
Vladislav Sytchenko 970bc2c4f5 SWDEV-273235 - Restore missing LinuxPro option
Change-Id: Iccc0206f3f2c5b3c03f6ed313537f0f364a4ca29
2021-08-22 23:56:07 -07:00
agunashe d96481fb36 SWDEV-293742 - Update copyright end year VDI repo
Change-Id: I69d2fea4a7a43adf96ccea794270e4af991c5261
2021-08-22 23:56:07 -07:00
pvellien c11c02f2c7 SWDEV-285333 - Introduce Address sanitizer hostcall service
Change-Id: Id29aacd09d0a9934a027446c57c7095804e1a454
2021-08-22 23:56:07 -07:00
Vladislav Sytchenko 1423c1db64 SWDEV-273235 - Find UGL headers based on AMD_DRIVERS_PATH
All KMD/asic_reg/UGL headers are located under the drivers folder. No
need for the AMD_UGL_PATH variable as it essentially is
${AMD_DRIVERS_PATH}/ugl.

Change-Id: I070d737d50f2096493b3e75ef9b9e824cb19d048
2021-08-22 23:56:07 -07:00
Vladislav Sytchenko 77d6373502 SWDEV-273235 - Fix Windows CMake build
Change-Id: I337b8d3b38a492b77b55602ab3a6bb3c05e693e0
2021-08-22 23:56:07 -07:00
Vladislav Sytchenko 7f0c18457d SWDEV-273235 - Initial support for Windows CMake
This change refactors the current ROCclr cmake build to accomodate a
more modular approach. This allows easier support for multiple compiler
and/or multiple runtime backends.

Currently supported compilers:
    HSAIL - enabled by ROCCLR_ENABLE_HSAIL (defaults to OFF)
    LC    - enabled by ROCCLR_ENABLE_LC    (defaults to ON)

Currently supported runtimes:
    HSA - enabled by ROCCLR_ENABLE_HSA (defaults to ON)
    PAL - enabled by ROCCLR_ENABLE_PAL (defaults to OFF)

Any configuration is supported as long as at least one compiler and one
runtime is enabled.

Since ROCclr clients can configure it differently, one cannot reuse the
same ROCclr build artifacts between different clients. To assure this,
this patch assumes that ROCclr will be built as part of the clients
project.

Change-Id: Id4a5c43634296802b8ae87d1ad5984968391ccaf
2021-08-22 23:56:00 -07:00
Tao Sang c1c5c89cd0 SWDEV-270973 - Add missing copyright headers
Change-Id: I6bb17650f74371dae6e29c59fd6bb2022cc062fe
2021-03-02 12:01:54 -05:00
Tao Sang ce4cc6095c Fix wrong include path
Fix wrong include path of ROCclrConfig.cmake.in

Change-Id: Ic5a1387a426cf02a985a4ef8ff8ff15e6a871cbb
2020-10-30 18:19:34 -04:00
Freddy Paul 6b8ae3dd77 Align to new hsa cmake target usage.
HIP or any ROCm component above HIP may not be calling
hsa-runtime directly. OpenCl and HIP are the two components
calling ROCclr and to bring in the transitive dependency of
thunk,ROCR,amd_comgr it is better to have the dependency
chain set correctly in the ROCclr cmake target. With this
change OpenCl or HIP should not be setting ROCR dependency
directly.

This helps to link OpenCl(libamdocl.so) link statically with
comgr,hsa,thunk.

Change-Id: I0d538b7abc6a0ce700ec3332b97fc144db5fc5ff
2020-07-22 11:21:09 -04:00
Matt Arsenault 8988f34935 Export targets for find_package
Currently the opencl build hardcodes the path and directly includes
amdvdi_staticTargets.cmake. The proper way to find this is through
find_package, so start exporting the expected format.

Change-Id: Ic960a2dd467d57867cb96ab831dbd85bca336535
2020-05-21 13:47:59 -04:00
foreman b21a094a92 P4 to Git Change 1971654 by kzhuravl@kzhuravl-spot-ocl on 2019/07/22 17:15:57
SWDEV-79445 - Bring cmake related changes from git

	http://git.amd.com:8080/c/compute/ec/opencl/+/229473
	http://git.amd.com:8080/c/compute/ec/opencl/+/229474
	http://git.amd.com:8080/c/compute/ec/opencl/+/233268

	+

	Payam's changes for comgr

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#24 edit
... //depot/stg/opencl/drivers/opencl/DEB/postinst#1 add
... //depot/stg/opencl/drivers/opencl/DEB/prerm#1 add
... //depot/stg/opencl/drivers/opencl/RPM/rpm_post#1 add
... //depot/stg/opencl/drivers/opencl/RPM/rpm_postun#1 add
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#18 edit
... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCR.cmake#3 edit
... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCT.cmake#1 add
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#20 edit
2019-07-22 17:19:35 -04:00
foreman 7c47ea5085 P4 to Git Change 1423425 by lmoriche@lmoriche_palamida on 2017/06/16 13:49:36
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Update from git.

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#12 edit
... //depot/stg/opencl/drivers/opencl/cmake/modules/bc2h.cmake#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#7 edit
2017-06-16 14:07:54 -04:00
foreman 83937abeae P4 to Git Change 1410638 by lmoriche@lmoriche_palamida on 2017/05/17 11:34:07
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Add FindROCR.cmake, and use find_package() to locate the ROCR

Affected files ...

... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCR.cmake#2 edit
2017-05-17 11:50:44 -04:00
foreman 85b83e06cf P4 to Git Change 1410629 by lmoriche@lmoriche_palamida on 2017/05/17 11:27:06
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Add FindROCR.cmake, and use find_package() to locate the ROCR

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#8 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#5 edit
... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCR.cmake#1 add
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#3 edit
2017-05-17 11:40:24 -04:00