Wykres commitów

374 Commity

Autor SHA1 Wiadomość Data
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
Julia Jiang 398e093f79 SWDEV-306204 - update disclaimer in opencl
Change-Id: I6d5a33cd062c8f5193c09483432685c64519da50
2021-11-08 17:38:04 -05:00
Alex Xie 1ced9040b6 SWDEV-305752 - OCL WIN Conformance select test fail
unmap should complete before working on the other mapping API

Change-Id: I27517888f3112d1113894cdbcb7a786321a3e554
2021-10-28 12:20:15 -04:00
Jason Tang b1e9a4227c SWDEV-301289 - Enable building and installing ocltst on Windows
Change-Id: I512dbcb96dd6a7c52a5ebad819043fdd0138215d
2021-10-25 14:10:15 -04:00
Jason Tang 5c13f33da2 SWDEV-307023 - Fix cltrace build
Change-Id: I75fd953668dc576c3132ae463e34ecb4ae2fb0c7
2021-10-14 09:26:27 -04:00
Sarbojit Sarkar 1643555ad7 Merge "SWDEV-301823 - Fix for memset2D/3D optimization" into amd-staging 2021-09-28 00:06:39 -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
Vladislav Sytchenko c4aa6febe5 SWDEV-301289 - Treewide macro rename
ATI_OS_WIN -> _WIN32
ATI_OS_LINUX -> __linux__

We should not rely on non-standard macros for platform detections.

Change-Id: If1d06e2e1187268df62a59609ea5496ab7eb709d
2021-09-26 12:13:37 -04:00
Jason Tang 159f7f24cd Merge "SWDEV-301289 - Add missing sources files needed for ocltst on Windows" into amd-staging 2021-09-25 17:09:12 -04:00
Vladislav Sytchenko 6c9b07370c SWDEV-301289 - Point to local AMD OpenCL via OCL_ICD_FILENAMES
The OCL_ICD_FILENAMES env var contains a list of OpenCL platforms that
the ICD should prepend to the list of reported platforms. Since the
built amdocl library will show up as the first platform, we can tell
ocltst to always run with platform 0. This way we guarantee that the
correct binary is being loaded.

Using this env var also makes programming LD_LIBRARY_PATH redundant
for Linux.

Change-Id: I8c1729e8b4dd1cd2df1a3da08c7b7addebd08b4f
2021-09-25 17:03:17 -04:00
Vladislav Sytchenko 3d82092632 SWDEV-301289 - Correctly reset optind when using getopt()
optind's starting value is 1 and it needs to be reset to 1 after each
getopt() invocation. Resetting it to 0 will cause getopt() to
reinitialize its internal state. This is only needed for some corner
cases. In our current usage, we should be resetting it to 1.

Change-Id: I68da7e41ee8b83b275e2a7bd660c13af569769f1
2021-09-25 17:02:35 -04:00
Sarbojit Sarkar 5847bb9c7d SWDEV-301823 - Fix for memset2D/3D optimization
Change-Id: I03d41a1908ca547e27774e6ced98571913e1808a
2021-09-25 12:11:26 +00:00
Alex Xie 19ca123460 SWDEV-302875 - OpenCL build failure
clinfo should rely on OpenCL interface, headere file and library only

Change-Id: I8e09aa73b55f1a28c2e4403f52740803d0338c12
2021-09-16 22:16:06 -04:00
Jason Tang 9ca733ca1e SWDEV-1 - switch to C++17
Change-Id: I555914fc65f61259fe32a7f58864ac0dba1d641f
2021-09-04 17:19:02 -04:00
Maneesh Gupta e9833dce24 Merge "SWDEV-293197 - Add dependency on rocm-core" into amd-staging 2021-09-02 01:10:40 -04:00
jujiang 422a26142d SWDEV-286322 - clean up trailing white space
Change-Id: Ie47bc977e1598356b455957d96f9afa37794c1fd
2021-09-01 14:53:14 -04: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
Vladislav Sytchenko 35ee5f675c SWDEV-301289 - Add missing sources files needed for ocltst on Windows
Change-Id: Icf96028f7891781e4ce1a7d425ff8d41e2602ffd
2021-08-30 22:33:28 -04: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
Julia Jiang fdb61872c8 SWDEV-291894 - update branch info in OpenCL readme
Change-Id: I18e497f08ac3ef98e7b383eda62ec42ec7559912
2021-08-13 12:47:03 -04:00
Vladislav Sytchenko 3cb3b5eb4b SWDEV-293871 - Update license for edited Khronos headers
We should acknowledge that we modified third party files.

Change-Id: I510e445d049faafe06bb78353431d9427f3eb20c
2021-07-12 12:19:45 -04:00
Ajay GunaShekar e37d6f831b Merge "SWDEV-293742 - Update copyrights end year for opencl repo" into amd-staging 2021-07-09 12:31:52 -04:00
Maneesh Gupta aaeed07bef Merge "SWDEV-294276 - Fix clinfo install permissions" into amd-staging 2021-07-09 02:56:03 -04:00
agunashe 5a0ecc8e48 SWDEV-293742 - Update copyrights end year for opencl repo
Change-Id: I0ce8369a7ef569ac82c6e20266d0c98331a43e08
2021-07-08 21:55:55 -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
Julia Jiang 82156484b4 SWDEV-291787 - Update files with proper EOL
Change-Id: I3be96a3bb7d1d944f3a14b595df8ec533af6f953
2021-07-07 18:03:52 -04:00
jujiang 2aa5689d7e SWDEV-286322 - add .gitattribute
Change-Id: I0452a9c85bbb27adffebf4b1329d56a0f1d23ecd
2021-06-28 14:16:13 -04:00
Vladislav Sytchenko 6046e6fea4 SWDEV-273235 - ocltst build fixes
Correctly reference the new amdocl target.

Do not use hardcoded paths to libamdocl64.so, instead query the path to
it from cmake.

Change-Id: I4738dd8d6d08f9fb72fdd725b6488b81342755a4
2021-06-07 14:25:28 -04:00
Vladislav Sytchenko bc5c8df20b SWDEV-289871 - Restore missing -Bsymbolic option
-Bsymbolic is required to make sure all AMD OpenCL runtime symbols are
resolved internally, otherwise ld might resolve them using symbols from
the OpenCL ICD. This will cause incorrect functions to be called.

Change-Id: I4ca0326a574ee2e537525bfda96ec20fabfe0158
2021-06-07 14:22:53 -04:00
Vladislav Sytchenko c6eadce180 SWDEV-273235 - Enable building clinfo/cltrace on Windows
This patch also includes additional cleanup logic to the installation
rules. The OpenCL ICD already defines its own installation rules, no
need to duplicate them.

Change-Id: Id1c386307a83b82e21f6fa132e41957d9b348fd3
2021-06-05 12:52:31 -04:00
Vladislav Sytchenko 58c93c8047 SWDEV-273235 - Do not use target_link_options()
Some CI systems have a somewhat out of date version of cmake, which
does not have this functionality. Fall back to using
target_link_libraries() instead.

Change-Id: I2410b24bcb6f1be2c2c3303ccd0019b10c914d2e
2021-06-02 21:03:28 -04:00
Vladislav Sytchenko 75b232eea2 SWDEV-273235 - Correct linker export file usage
CMake doesn't handle linker export files in a general way well. On
Windows it is able to recognize a .def file and pass it to the linker.
Unfortunately it cannot do the same thing on Linux, so we have to
manually specify it.

Note that CMake can't recognize the current Windows export file due to
the .in suffix, hence why the amdocl.def file is being added. The
amdocl.def.in file will be removed later, as the Makefile build still
uses it.

Change-Id: I33a4151af0257d56d46cd27cbd028b34b77b706b
2021-06-02 12:56:14 -04:00
Vladislav Sytchenko 40f87d6d86 SWDEV-273235 - Remove unused logic
git is invoked to populate OPENCL_VERSION_GITDATE, but the value is no
where to be used in the project.

Change-Id: Iceae650e6260c2ccd749f582034fc09205b4af7a
2021-06-01 14:31:21 -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 ae36b6c0aa SWDEV-273235 - Fix warning in the cmake build
Change-Id: I9840da22fcce11712c32e68f07ad886d08c8b16f
2021-05-27 18:09:26 -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
Jason Tang b423c699a6 SWDEV-277566 - Use amd::Program::load interface
Change-Id: I0c19d4efcc09709b8aced6fa63e6deae39f58abb
2021-05-10 16:46:03 -04:00
Vladislav Sytchenko 8af3f12790 SWDEV-273235 - Allow explicitly disabling LF support
Currently LiquidFlash cannot be supported from Github Enterprise,
hence we need to be able to build with out it.

Allow this by setting -DWITH_LIQUID_FLASH=0.

Change-Id: I8f147b5d52ca1c8203000beea8f16b2699548dc3
2021-05-05 12:43:59 -04:00
Vladislav Sytchenko 4127be5c63 SWDEV-273235 - Remove implicit dependancy on WGL
Change-Id: I8355587be50492767caa3d2a4e602bdd6eb73960
2021-05-05 12:42:35 -04:00
Vladislav Sytchenko 5958b3bba5 SWDEV-273235 - Minor build fixes for Windows CMake
runtime directory only exists in P4. We should not be referencing it.

Change-Id: I1d88f32fccc716468c070235c4797bd905a76866
2021-05-05 12:40:26 -04:00
German Andryeyev c9feefc584 SWDEV-86035 - Disable liquidflash for PAL build under Linux
Change-Id: I19d335654f98277be0e9af8a25e38d86a6b8de2e
2021-04-21 17:03:10 -04:00
pghafari 74de707cf2 SWDEV-245532 - HIP - Vulkan interop, syntax update
Change-Id: I5fd4431bab4d975efec47298f2746fbcbbec8a44
2021-03-25 13:40:55 -04:00
Payam Ghafari a4ec8608e8 Merge "SWDEV-245532 - HIP - Vulkan interop" into amd-staging 2021-03-23 23:36:59 -04:00
German Andryeyev f4cc6cf84f Merge "SWDEV-276625 - Add implicit glFinish() for cl_khr_gl_event" into amd-staging 2021-03-23 14:32:21 -04:00
German Andryeyev c4cde09339 SWDEV-276625 - Add implicit glFinish() for cl_khr_gl_event
Modifies the behavior of clEnqueueAcquireGLObjects and
clEnqueueReleaseGLObjects to implicitly guarantee synchronization
with an OpenGL context bound in the same thread as
the OpenCL context.

Change-Id: I23eddee37a77f6c1c9d1a9ad3a3e1eb254a1ed82
2021-03-22 16:49:03 -04:00
pghafari 67e9aac689 SWDEV-245532 - HIP - Vulkan interop
Change-Id: Ied16503cc154fbda8ce28db25df746cccb19e0ba
2021-03-22 15:06:50 -04:00
Jason Tang 2727d7047a SWDEV-277771 - Build opencl with c++ standard 14
Change-Id: I11c72b230320761f775e23816634b55ceaccb65e
2021-03-22 11:30:29 -04:00