Commit graph

444 Commits

Autor SHA1 Nachricht Datum
Todd tiantuo Li 2285c7b66c SWDEV-372070 - Add Phoenix to OCLPerfCounters in ocltst
Change-Id: I08683856c1e99f3c0b96373aa1fc9720f4b97e65


[ROCm/clr commit: 3ffa3a828e]
2022-12-06 04:34:34 -08:00
AlexBin Xie 1983391a45 Merge "SWDEV-369978 - Add ASIC id to test SWDEV-370434 - Add ASIC id to test" into amd-staging
[ROCm/clr commit: 0f7afda8ef]
2022-12-02 13:11:24 -05:00
Alex Xie be2b215206 SWDEV-369978 - Add ASIC id to test
SWDEV-370434 - Add ASIC id to test

Change-Id: I7ed199c677543e7ab42011a9c80befbafd9508f4


[ROCm/clr commit: 72830e31cf]
2022-12-01 17:46:31 -05:00
Ranjith Ramakrishnan 7a0d151d45 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 891f23718c.

Change-Id: Id07f4c8b2915c4ed7937094087ddba8402444da9


[ROCm/clr commit: cb625e8fb2]
2022-11-23 13:03:40 -05:00
Ranjith Ramakrishnan 891f23718c 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


[ROCm/clr commit: 0f5c2f0ba8]
2022-11-21 03:48:17 -05:00
German Andryeyev fde603e002 Merge "SWDEV-368308 - Remove HW debug extension" into amd-staging
[ROCm/clr commit: 5e7094d504]
2022-11-18 18:36:58 -05:00
German 95bcc9655f SWDEV-368308 - Remove HW debug extension
Remove the header file, used in rocclr.

Change-Id: I1dfdbb05fdcbaf32708252071e8955d2ca94126d


[ROCm/clr commit: 92f0607f87]
2022-11-18 14:04:17 -05:00
Ranjith Ramakrishnan 912058b64c SWDEV-366823 - Change pragma message to warning
File reorganization feature was implemented with backward compatibility
The backward compatibility support will be deprecated in future release.
Changed the #pragma message to #warning for a smooth transition

Change-Id: If917a0bef9bbc347f08ca02435d70d517f175afc


[ROCm/clr commit: 0bafb4683a]
2022-11-17 20:19:55 -05:00
German ba2941e57d SWDEV-368308 - Remove HW debug extension
The extension was devloped for AMDIL path only.
OCL runtime doesn't support AMDIL path  anymore.
The new debugger interfaces don't require any runtime calls either.

Change-Id: I6215545f9b6ae5c70b5f076c3cbfbfd3b5eef42b


[ROCm/clr commit: 0db20050bc]
2022-11-16 17:37:06 -05:00
Jason Tang 105858827a Merge "SWDEV-362451 - Reenable OCLPinnedMemory" into amd-staging
[ROCm/clr commit: e2e223e24a]
2022-11-09 11:57:14 -05:00
Tao Sang 94946f5616 SWDEV-363140 - Support performance counter on gfx11
Support performance counter on gfx11 in Windows only
as Rocm doesn't support performance counter on gfx11 in Linux.

Change-Id: I2216f72f4d4db6dd3766343b0c821cb3d35d7852


[ROCm/clr commit: 6f43b210d7]
2022-11-01 18:12:02 -04:00
jatang dec87c74f0 SWDEV-293816 - Test a CPC counter that's supported by both gfx10 ROCr and PAL backend.
Change-Id: I5d20d07b999c26707611dba5b2c7da9782ad08f3


[ROCm/clr commit: 7cb2b815b3]
2022-10-25 18:14:07 -04:00
jatang fe5311622d SWDEV-362451 - Reenable OCLPinnedMemory
Change-Id: I75897846913190422bb8c95d1dce83077d5c77d6


[ROCm/clr commit: b7b458730a]
2022-10-25 12:32:13 -04:00
Jason Tang e07fd20922 Merge "SWDEV-362891 - Add the ocltst install path to RUNPATH." into amd-staging
[ROCm/clr commit: a19e8ab0bb]
2022-10-21 18:22:20 -04:00
jatang 17948751c9 SWDEV-362451 - Disable OCLPinnedMemory for now.
Change-Id: I9a771cfc5751e06c5a494ad2e4036f9aa3efbe9a


[ROCm/clr commit: b7d64f9f5f]
2022-10-20 16:03:36 -04:00
jatang cecfda83f5 SWDEV-362891 - Add the ocltst install path to RUNPATH.
So ocltst can automatically find liboclruntime.so from the same directory as ocltst.

Change-Id: Id2f4f58b1c7f0304be76a3aeecd5eea2eec328de


[ROCm/clr commit: cbbf0d1edd]
2022-10-19 18:17:17 -04:00
Ashutosh Mishra c8eadd18af SWDEV-362882 - Unable to run clinfo/opencl tests
The explicit RUNPATH addtion has been
revoked after the file reorg. Hence
the rpath for discovery of the libs
has to be taken care by individual binaries
Current patch adds the run path for
descovery of the libOpenCL.so

Signed-off-by: Ashutosh Mishra <ashutosh.mishra@amd.com>
Change-Id: Ia3bf9202bea78ecfdb881e40b0eb7a0d4a303ed3


[ROCm/clr commit: 1754b043a3]
2022-10-19 15:03:07 -04:00
jatang db848fbcd2 SWDEV-362891 - Incorperate TestLog into ocltst.
So it's no longer needed to setup path to find TestLog

Change-Id: I0c7ae21e426f2d6d832f707b9d37661bbed67100


[ROCm/clr commit: cf9f9e84b8]
2022-10-18 18:01:53 -04:00
Ranjith Ramakrishnan b2e30b6ffa 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


[ROCm/clr commit: 3d350393d8]
2022-09-16 00:48:37 -07:00
Victor Zhang ae3d266843 Merge "SWDEV-343905 - Updated headers to match the khronos repository" into amd-staging
[ROCm/clr commit: fe8acef64e]
2022-09-12 14:32:42 -04:00
Jason Tang 92eb8654a4 SWDEV-350058 - Create ocltst package
Change-Id: Ifd1f538254c174da5bca2535ade5ac25c49bf673


[ROCm/clr commit: 145afd6a78]
2022-08-19 18:18:15 -04:00
Konstantin Zhuravlyov 3dd34bdd26 SWDEV-350564 - Silence int-conversion warnings as errors
Change-Id: Ie7cf8bef0ce41df92369aa45c76493d5d0a6669b


[ROCm/clr commit: ec63aa2302]
2022-08-16 17:20:04 -04:00
victzhan 0fa83b9474 SWDEV-343905 - Updated headers to match the khronos repository
Change-Id: Ic3aaa7194a45243cd3c7e0ed226e86ba4f0fbf2b


[ROCm/clr commit: 252cda36fe]
2022-08-15 22:08:09 -04:00
Konstantin Zhuravlyov b4162f8685 Merge "SWDEV-350564 - Silence int-conversion warnings as errors" into amd-staging
[ROCm/clr commit: 6aa8066584]
2022-08-10 12:34:55 -04:00
Victor Zhang eae880f88f Merge "SWDEV-339709 - Fixed OCLDeviceQueries failing on MI200" into amd-staging
[ROCm/clr commit: 6e2ebb7051]
2022-08-10 10:05:51 -04:00
Konstantin Zhuravlyov 3093eddcf8 SWDEV-350564 - Silence int-conversion warnings as errors
Change-Id: Ib49471b90ee8f10f24ca0b56ee9fc1d0d78c30c6


[ROCm/clr commit: 5407e18193]
2022-08-09 13:30:33 -04:00
Ranjith Ramakrishnan bd608d0690 SWDEV-344894 - Remove work around code
The workaround for file-reorg in opencl is not required with changes in build script.
Similar workaround code in atmi is causing installation error in spack atmi and fixed by  build scripts changes and removing the workaround

Depends-On: I2c79675ec05e1e7de2baa0a21033939f0eadac3d
Change-Id: I9b5640a7b284f1df6b3127938c51da24ce60b69e


[ROCm/clr commit: a06eda1f73]
2022-07-06 00:25:45 -07:00
Victor Zhang 16c0a097a4 SWDEV-339709 - Fixed OCLDeviceQueries failing on MI200
Change-Id: I27cd020b8813aab8a3a53dcc9545609fb04ad4ed


[ROCm/clr commit: f3438e814e]
2022-06-30 16:06:25 -04:00
Victor Zhang d33cc9839e SWDEV-328158 - added modification license to changed files and removing trailing white spaces
Change-Id: I82f5ef84eac72821214d832a41e40e0f42cf66b9


[ROCm/clr commit: 8ba6c62394]
2022-06-23 16:58:03 -04:00
AlexBin Xie a9b3210bc9 Merge "SWDEV-328157 - Palamida scan header remediation" into amd-staging
[ROCm/clr commit: 65403d2eee]
2022-06-21 10:25:47 -04:00
Alex Xie 4faa8f8b4a SWDEV-328157 - Palamida scan header remediation
Change-Id: Iee7798d368cc3c1c47c4b8ff483d42aec595d900


[ROCm/clr commit: 1d24125cf3]
2022-06-20 17:23:15 -04:00
Todd tiantuo Li 4f86eae6f8 SWDEV-339551 - Prevent ICD from loading outdated amdocl binary
1.Keep track of library name in KHRicdVendorRec
2.Check if library with the same name has already been loaded before adding it in ICD list
CL#1760530

Change-Id: I1e0356422c71963788b76019b0d8db5b8542f9ee


[ROCm/clr commit: ed40c24fa3]
2022-06-06 05:42:19 -07:00
Cordell Bloor 3805867b8b Merge "SWDEV-337169 - Fix CRLF in oclperf.exclude" into amd-staging
[ROCm/clr commit: 7fdb3d3c97]
2022-06-02 14:59:52 -04:00
Todd tiantuo Li 02d0c32f2b Merge "SWDEV-315047 - add Raphael(gfx1036) to OCLDeviceQueries" into amd-staging
[ROCm/clr commit: f34c0c2f82]
2022-05-17 05:41:49 -04:00
Cordell Bloor eef8567684 SWDEV-337169 - Fix CRLF in oclperf.exclude
Renormalized line endings in tests/ocltst/module/perf/oclperf.exclude
to fix the Debian packaging problems reported in
https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/140

Change-Id: I4fdc7c52e60078ec6048678679acdc5d5e5b715b
Signed-off-by: Cordell Bloor <Cordell.Bloor@amd.com>


[ROCm/clr commit: 1f5f4271ae]
2022-05-15 19:06:22 -06:00
Todd tiantuo Li c75c34f099 SWDEV-315047 - add Raphael(gfx1036) to OCLDeviceQueries
Change-Id: Iaa930c5ea9e39f9c44b1a5d737fc3520e9b6eca8


[ROCm/clr commit: 6c4ab575ca]
2022-05-10 02:37:42 -07:00
Alex Xie 9811bbaa4f SWDEV-328156 - Palamida scan remediation
Change-Id: I7e2ae4afea117630cfc43d2cd0f0fd6d98fe4f58


[ROCm/clr commit: aa8a31b1d8]
2022-05-09 19:24:09 -04:00
Jeremy Newton 90d46dc278 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


[ROCm/clr commit: e9dd848149]
2022-05-09 14:33:00 -04:00
Alex Xie 9f1fcb23e9 SWDEV-333966 - [Lnx]image test fail
OCLCreateImage test passed when the image was not supported at all.
Add a warning.
For ASIC without image support, let the test pass.

Change-Id: I13c015561a51879f052c2c2d56c672ffbdbe0641


[ROCm/clr commit: 0d29a523d3]
2022-05-03 12:47:26 -04:00
Jason Tang 9e85fabc48 SWDEV-1 - Set CMAKE_POSITION_INDEPENDENT_CODE to ON
Change-Id: I95e4166e9fa96bde10a54a4842becce4ab554b22


[ROCm/clr commit: daf33f9d38]
2022-04-23 16:13:49 -04:00
Alex (Bin) Xie 757ad58402 SWDEV-329646 - MicroStation app crash upon closing
Change-Id: I0ca272be42934ee96f45300fa06847cd74170f13


[ROCm/clr commit: 10648c4d70]
2022-04-21 12:29:48 -04:00
Jason Tang 2acbfbc801 SWDEV-1 - Disable OCLAtomicCounter for now
OCLAtomicCounter should only be run when the compiler is HSAIL.

Change-Id: I862e23b22157d2c25bc5697fa58079c78040f5f5


[ROCm/clr commit: a3fe0fafe2]
2022-04-20 16:38:48 -04:00
Jeremy Newton 990733e85d Merge "SWDEV-321116 - Allow disabling ICD loader" into amd-staging
[ROCm/clr commit: 3121b1020a]
2022-04-19 12:35:21 -04:00
Jeremy Newton dbacdbdf88 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


[ROCm/clr commit: d1782940f3]
2022-04-13 18:27:13 -04:00
sdashmiz f8355f5fb0 SWDEV-329349 - add display support for Opencl
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Icf5253ba87f3852153c620fb7b789bd6e90cb52e


[ROCm/clr commit: 9f5685ea0a]
2022-04-13 15:11:29 -04:00
Hao Yuan abc4522fa3 Merge "SWDEV-328274 - Move DLLMain from VDI layer to HIP/OCL layers" into amd-staging
[ROCm/clr commit: 4d300d1f8a]
2022-04-12 11:00:51 -04:00
haoyuan2 605958392b SWDEV-328274 - Move DLLMain from VDI layer to HIP/OCL layers
Change-Id: I89db993ba90783c53546c5290c00e13f5c24edf4


[ROCm/clr commit: fe173ed9fb]
2022-04-08 12:12:07 -07:00
Jeremy Newton 6e388071ba 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


[ROCm/clr commit: b8c124acb5]
2022-04-08 13:52:08 -04:00
Jeremy Newton 60d0d8444e SWDEV-321116 - Drop unnecessary ICD include
This looks unused. This should allow building rocm-opencl without any
dependency on any particular OCL ICD.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: Ib9229ede8400fd0e883275659ab99513b03952cb


[ROCm/clr commit: 86c9bb1946]
2022-04-07 14:45:43 -04:00
Maneesh Gupta ec76bb8fc8 Merge "SWDEV-325869 - Update ASAN linker options" into amd-staging
[ROCm/clr commit: 69b7cb5069]
2022-03-10 01:50:00 -05:00