Commit Graph

22 Commits

Author SHA1 Message Date
Jeremy Newton 5416bcb7e8 SWDEV-312927 - Fix rocm-opencl package licensing
The license file needs to be installed.

RPM also requires the LICENSE field to be set.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I8bcec77e51b88f3f6a6fa5799d6e38db1d1ab566
2021-11-30 17:27:03 -05:00
Ashutosh Misra 0f79d51998 SWDEV-264665 - resolve uninstall breakage
Check required of existence of dir in the prerm

Change-Id: I54e1bc0309e82794b41fcc2ae1f01f004138dcee
2021-11-12 12:37:13 -04:00
Freddy Paul b4b83e274e SWDEV-304500 - OpenCL tests are failed for Ubuntu 20.04.3
As part of the stack unification some of the application using
opencl seem to depend on libopencl.so provided from thirdparty
providers. For libopencl.so from thirdparty provider to find
libamdocl.so ldconfig path to {opencl install path}/lib is required

Change-Id: I8e12e463209a44177ee433644c75ef0781f1da2f
2021-09-27 07:36:06 -07:00
Icarus Sparry d91e1d9daa SWDEV-293197 - Add dependency on rocm-core
Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
Change-Id: Id1b34c7c6fa551f3aacc35827cb6906cec4484e3
2021-09-01 00:21:42 -07:00
Freddy Paul 4790350f63 SWDEV-300274 - Path to OCL library not handled consistently
OpenCl applications are expected to work with publicly available
libopencl.so that is capable of finding vendor specific library
libamdocl64.so using the ICD loader entry.
x86_64-rocm-opencl.conf should provide ldconfig entry for
libamdocl64.so and libamdocl64.so shall use RUNPATH for finding
dependencies like hsa runtime.

Change-Id: Icf1267c7a04c1545eae0a7236bf8b7581ffa11ef
2021-08-26 09:31:03 -07:00
Vladislav Sytchenko 31e688d8f0 SWDEV-294276 - Fix clinfo install permissions
Specify for packaging that clinfo is a program. This will set its
default permissions to include OWNER_EXECUTE, GROUP_EXECUTE and
WORLD_EXECUTE.

Change-Id: I986f6db73efa9a3f8ab5bedfb829adccad0759aa
2021-07-08 11:26:38 -04:00
Vladislav Sytchenko d53c19cfa5 SWDEV-273235 - Cleanup OpenCL installation logic
Don't use hardcoded install destinations. CMake will decide where things
should be installed based on platform.

Change-Id: Ifcf956181d3efb32d4ce6191a89c1ea225d0e8cc
2021-06-01 14:31:14 -04:00
Vladislav Sytchenko 1c16690617 SWDEV-273235 - Initial support for Windows CMake
This change is tied to the ROCclr cmake rework. ROCclr will now be built
as part of OpenCL itself.

All the dependencies on comgr and rocr have been moved into ROCclr
itself. This allows OpenCL to pull in all the required compiler/runtime
dependencies by simply linking against ROCclr. Note that ROCclr needs to
be configured from OpenCL cmake command line. If not, we will default to
LC + ROCr support.

Change-Id: I5271302d073aef8cfa617828d218c856711bf9ba
2021-05-27 13:08:12 -04:00
Payam Ghafari 0762c948b6 Revert "SWDEV-197835 - adding Khronos OpenCL ICD build"
This reverts commit 932c83fe8f.

Reason for revert: need to update other projects (linuxpro & marnier)

Change-Id: Ib02194d052170e487cd56480eb0d9226895aa580
2021-05-18 10:31:25 -04:00
Payam 932c83fe8f SWDEV-197835 - adding Khronos OpenCL ICD build
Change-Id: Id7d9cd6076c6f1670eedbea06a6976c05e391520
2021-05-17 18:19:30 -04:00
Cole Nelson 2174367fb4 packaging: conformant package names
This patchset addresses package name requirements:
http://confluence.amd.com/pages/viewpage.action?pageId=234791224

Email contact  corrected: SWDEV-258090

Names as tested (internal example):
rocm-opencl-dev_2.0.0.40000-cpnn.14322_amd64.deb

(release examples):
rocm-opencl-2.0.0.40000-sles152.3022.x86_64.rpm
rocm-opencl-devel-2.0.0.40000-3022.el8.x86_64.rpm

Change-Id: Icb202085ae4065ba264d02d34cadbf1a0f393f9a
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
2020-11-20 07:17:35 -08:00
Pruthvi Madugundu b88a313eff Adding support for multiple icd files specific to ROCm version
- amdocl64.icd is renamed to amdocl64_<ROCM_PATCH_VERSION>.icd
- This will enable support for multiple icd for different versions of
  ROCm

Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: I8031b19f8579507ffb6727dedcd2e3fbb4e45de8
2020-07-09 18:04:18 -07:00
Jason Tang 0394f79d4d Fix CentOS build
Change-Id: Id0956f2a876077a3528c4fafc136586b95fdda70
2020-06-29 18:49:48 -04:00
Jason Tang 4666113db0 Not to use fixnames
Change-Id: I50c9503cad1fc072edec989a4f82a27bb7bb3909
2020-06-28 18:57:16 -04:00
Jason Tang 4dcfe78e56 SWDEV-204566 - Use ROCMSetupVersion to set package version
Change-Id: I29b9f748291b3802de65c9f29f791050853c2d12
2020-06-01 16:39:35 -04:00
Ramesh Errabolu 42150302e6 Remove dependency on hsa-ext-rocr-dev package
Change-Id: I1b4032390c128e71a2f9a743b9db9b7bf7713e91
2020-05-15 16:56:30 -05:00
Freddy Paul e43d427cdd opencl-on-vdi:Add symlink for libopencl lib to ROCm lib
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
2020-05-11 14:02:37 -07:00
Jason Tang 372ebe7b00 Add dependency of hsa-rocr-dev and hsa-ext-rocr-dev
in-line with hip-on-vdi.

Change-Id: Ib0e1a5180eef409cfd0f1b5b9a42a2b663dfc0d3
2020-05-08 13:23:37 -04:00
Pruthvi Madugundu 5f710a5ecb Removing ld.so.conf entry for Opencl package
- The entry removed only when the installation is NOT /opt/rocm

Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: Ib90f89e63cffb4ae8f628af15387a49bb6511a5f
2020-04-17 12:27:57 -07:00
Aaron Enye Shi 244b86896d SWDEV-228303 - Fix clinfo default permissions
Change-Id: I2ed3aa2e2705783388a2832415d5a0131d3b57f6
2020-03-23 11:00:58 -04:00
Aaron Enye Shi e8c929441d Fix OpenCL CentOS package name
Change-Id: Ifb3478563f68b190da4bb97bc3d1c31bcefb4fff
2020-03-19 14:15:02 -04:00
Aaron Enye Shi b3d035b1dc SWDEV-227621 - Fix OpenCL CMake Packaging
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
2020-03-18 15:22:11 -04:00