Граф коммитов

50 Коммитов

Автор SHA1 Сообщение Дата
Jaydeep Patel 1f55a707b4 SWDEV-482751 - Use ocl-icd-devel package for SLES.
Change-Id: I30e6243d697dc984a42051c20e336551d50d8e94
2024-10-20 23:55:02 -04:00
Alex Xie df9ae754a4 SWDEV-482751 - Depends on distro opencl icd loader
Since we don't distribute icd loader, we need to install distro icd loader.

Change-Id: I1ea86bcf7c642a034c53f71130b15de1fa27e31e
2024-10-16 16:21:58 -04:00
Julia Jiang f44ca70bb7 Revert "SWDEV-444098 - remove rocm-ocl-icd packaging"
This reverts commit 5f68a4531a.

Reason for revert: due to windows staging branch using Opencl-icd-loader master

Change-Id: I9cca7564a21de1733665a34da6f0322aa3b886e7
2024-03-22 16:59:23 -04:00
Julia Jiang 5f68a4531a SWDEV-444098 - remove rocm-ocl-icd packaging
Change-Id: If0234ff03cf86e1f0435e743c1df75a3e179d48c

Jenifer helped trigger a combined PSDB for the below three changes
https://gerrit-git.amd.com/c/compute/ec/prototype/+/1020194
https://gerrit-git.amd.com/c/compute/ec/clr/+/1003601
https://gerrit-git.amd.com/c/compute/ec/OpenCL-ICD-Loader/+/1012373

Combined PSDB was successful:
http://rocm-ci.amd.com/job/compute-psdb-staging/27382/
Change-Id: If0234ff03cf86e1f0435e743c1df75a3e179d48c
2024-03-15 10:46:07 -05:00
Alex Xie 06ff62da61 SWDEV-438177 - move ldconfig to amd opencl package instead of icd
Change-Id: I2486f38d398a508ead7d24f03d4cf7816d5c157c
2023-12-20 10:04:58 -05:00
Alex Xie 5a3c4ea49d SWDEV-434373 - Add icd config to opencl package
Change-Id: Id2d143ae82b0fa4d5321912fca9daa1e958f1fb6
2023-12-11 11:17:37 -05:00
Jason Tang a4bba6d705 SWDEV-404928 - Remove rocm-opencl depends of rocm-ocl-icd
Will replace rocm-ocl-icd with packaging of khronos opencl-icd-loader

Change-Id: I26da58e80fd1426b9908d0b524f93b17ab27626d
2023-06-14 14:35:57 -04:00
Ranjith Ramakrishnan 8a4bf91145 SWDEV-351540 - ASAN packaging for OpenCL
Package ASAN libraries and License file for ASAN package
Suffix "asan" added to package name

Change-Id: I1ae715d2ebc50d8a1ca6336c25802b989584ce40
2023-04-07 12:35:25 +00:00
Maneesh Gupta c6760a55d0 SWDEV-361630 - Fix rocm-ocl-icd package
Change-Id: Ib52dff09ee1c72b41c014b5e022cc2d8d79e0754
2023-03-30 09:10:58 +00:00
Maneesh Gupta d9ceb6a3a3 SWDEV-361630 - Enable opencl build
Change-Id: I19f8aa2e8157b8bfa053c502dcd63c52f0b6f104
2023-03-26 15:42:33 +00:00
Ranjith Ramakrishnan cb625e8fb2 SWDEV-310152 - ldconfig should be run from each components providing shared library, since rpath will be removed from binaries and libraries
Revert "SWDEV-310152 - Remove ldconfig from rocm-ocl-icd package"

This reverts commit 0f5c2f0ba8.

Change-Id: Id07f4c8b2915c4ed7937094087ddba8402444da9
2022-11-23 13:03:40 -05:00
Ranjith Ramakrishnan 0f5c2f0ba8 SWDEV-310152 - Remove ldconfig from rocm-ocl-icd package
ldconfig functionality moved from rocm-ocl-icd to rocm-core package

Depends-On: I1148fb36240c2e63994743ccf135e51e90695c37
Depends-On: I7ba908865187d578c273b20bf31a08a3458fbbfb
Change-Id: I4769c31df12fa3f1bb8baa283e0647ce9254e594
2022-11-21 03:48:17 -05:00
Ranjith Ramakrishnan 3d350393d8 SWDEV-340761 - Limit the removal of opencl conf file to package removal and provide unique name to icd file
While upgrading packaging in SLES/RHEL, the package to be upgraded is installed first, followed by cleanup of the older one
During upgrade 10-rocm-opencl.conf and icd file is getting removed as part of clean up, since the file name and path is same in different package versions.
Limit the removal of opencl conf file to  uninstall/removal of package and not during upgrade.
Used unique name for icd file

Change-Id: Ib34a78ce53e6b7d95adb70ccfd56474a297b64ca
2022-09-16 00:48:37 -07:00
Jason Tang 145afd6a78 SWDEV-350058 - Create ocltst package
Change-Id: Ifd1f538254c174da5bca2535ade5ac25c49bf673
2022-08-19 18:18:15 -04:00
Jeremy Newton e9dd848149 SWDEV-336248 - Don't exclude cl_egl.h from install
cl_icd.h includes cl_egl.h, but cl_egl.h is excluded from install. It
was reported by the community that including cl_icd.h would error due to
the missing cl_egl.h file.

I'm assuming that cl_egl.h was excluded because EGL isn't important for
ROCm. Since cl_icd.h has some important typedefs, it makes sense just
to include cl_egl.h, which seems to be a common practice in open source
projects.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I506257c2dc51512ec8e11b1e5dadbe6e48ad785b
2022-05-09 14:33:00 -04:00
Jeremy Newton d1782940f3 SWDEV-321116 - Allow disabling ICD loader
This patch adds an option (BUILD_ICD) to toggle the ICD loader build
with rocm-opencl. This isn't useful for official ROCm use, but distros
or users may want build rocm-opencl with their own OCL ICD loader.

The default option is BUILD_ICD=ON.
If this option is set to OFF, an OpenCL OCD loader must be installed
prior to attempting to build rocm-opencl.

E.g. distros already provide ocl icd loader packages:
sudo yum install ocd-icd-devel
sudo apt-get install ocl-icd-opencl-dev
sudo zypper install ocd-icd-devel

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I6006593eceed543cd829e8949ec2256482815673
2022-04-13 18:27:13 -04:00
Jeremy Newton b8c124acb5 SWDEV-321118 - Use GNUInstallDirs
Use GNUInstallDirs variables to determine the location of BINDIR,
LIBDIR, DOCDIR, and SYSCONFDIR.

Note that CMAKE_INSTALL_LIBDIR is overriden, since the default for RHEL
is lib64, but ROCm packaging wants it to be lib always. Distros or users
can easily override this.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: Ifb38263dce80d80c5ebb4eacd8e49c76bb013a44
2022-04-08 13:52:08 -04:00
Ranjith Ramakrishnan c110ac233f SWDEV-291455 - File Reorganization with backward compatibility
Package installed in /opt/rocm
Warpper header files and soft link to libraries for backward compatibilty

Change-Id: Ib1edb27713dfa589369f0a03c59d3ac1b0dc8400
2022-02-27 15:36:02 -08:00
Jeremy Newton 7ac4483be7 Merge "SWDEV-1 - Fix cmake build" into amd-staging 2022-02-23 14:11:56 -05:00
Saravanan Solaiyappan 56dde03fbb SWDEV-323670 - RPM: Remove symlinks during upgrade as well
During RPM upgrade, lib/libOpenCL.so* files/symlinks from the previous
installed version are not removed.
This change will remove those symlinks as part of the RPM remove
or upgrade operation.

Signed-off-by: Saravanan Solaiyappan <saravanan.solaiyappan@amd.com>
Change-Id: Ia943407052ec24911756042a5f9839a605522443
2022-02-22 08:04:02 -05:00
Saravanan Solaiyappan c741a808ae SWDEV-323670 - Remove lib/libOpenCL.so* symlinks during upgrade
During upgrade lib/libOpenCL.so* files/symlinks are not
removed.
This change will remove those symlinks as part of the upgrade
package activity.

Signed-off-by: Saravanan Solaiyappan <saravanan.solaiyappan@amd.com>
Change-Id: Ia12e89e857b358101f93a6044fe090aa7acafbe0
2022-02-17 09:43:30 -05:00
Jeremy Newton 9c1f2da1a2 SWDEV-1 - Fix cmake build
CPACK_PACKAGING_INSTALL_PREFIX is defined in the wrong location.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: Id8ce6beb1d18878c9132cab335cb372a53cc0ee8
2022-02-09 16:09:25 -05:00
Ashutosh Mishra e3fe3a6109 SWDEV-306262 - Fix RUNPATH
RUNPATH was not changed to correct ROCM_RPATH
Packaged proper binaries after RUNPATH correction

Signed-off-by: Ashutosh Mishra <Ashutosh.Mishra@amd.com>

Change-Id: I97443cc0d6cb1ecf7352e3c83ae0fe38a8f339bf
2022-02-08 15:14:05 -08:00
Freddy Paul 8fa82f6e64 SWDEV-309024 - Providing debug information for released libraries
Current packaging structure using custom command fail to work for
generating debug symbols.Hence changing the packaging to more
conventional way of using single CMakeLists.txt and split packages
using components like binary, dev and icd

Change-Id: I7fcf5f8afc3602f77576f2a13aa4916acb10888b
2022-01-26 08:14:05 -08:00
Jeremy Newton cb1e7cd48d SWDEV-306262 - Add ocl-icd subpackages
These packages contains only the ICD loader (libopencl.so). This allows
legacy opencl (PAL) to use these packages instead of duplicating these
packages in both builds.

This also resolves a licensing issue where OCL ICD is licensed as
Apache, while opencl is MIT. Having a separate package avoid license
confusion.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I3dd29239841da7f5dc767419a9bc35d9046e9936
2021-12-08 16:15:59 -05:00
Jeremy Newton e885ae9591 SWDEV-306293 - fix regression in cleanup
To fix SWDEV-306293, x86_64-rocm-opencl.conf was renamed to
10-rocm-opencl.conf. This was not changes in the clean up, only in the
creation, so the patch causes a regression by not cleaning up the new
filename.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I4aa456955f6f7c2d52a3560e5e792537f95add17
2021-12-07 09:59:03 -05:00
Jeremy Newton df2eec8465 Merge "SWDEV-312927 - Fix rocm-opencl package licensing" into amd-staging 2021-12-02 11:48:59 -05:00
Freddy Paul 3f1e227182 SWDEV-306293 - Failing Ubuntu, CL-GL subtest in OpenCL conformance
renaming rocm-opencl ldconfig file with "10-" prefix to prioritize
over system icd loader.
Change-Id: I0a54de7a0bc0e256d6470eae743ec712d1e42a36

Change-Id: I4af1d0e3e27f40f8b03b798cae43cfd4ba4a1880
2021-12-01 07:29:54 -08:00
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