Commit Graph

312 Commits

Author SHA1 Message Date
Todd tiantuo Li dcad5a921e Merge "SWDEV-267762 - add RMB(gfx1035) to deviceQuery" into amd-staging
[ROCm/clr commit: 280b759175]
2021-01-25 19:40:02 -05:00
Vladislav Sytchenko 35655388b0 SWDEV-264411 - Disable OCLDynamicBLines test
Change-Id: I067afa99b988e0b32edee7d27c1403d31775655c


[ROCm/clr commit: 290a16716d]
2021-01-22 16:55:18 -05:00
Jason Tang a97c8523f5 SWDEV-268345 - Enable address sanitizer build when ADDRESS_SANITIZER is ON
Change-Id: Iaef46358f33a399f8b047aaebc5154bb7352a69a


[ROCm/clr commit: 8d75c7e76f]
2021-01-21 18:31:14 -05:00
Tony Tye 2119330db1 SWDEV-268864 - Use new isa class to access isa related information
Change-Id: I866eeef06f86df77c651a25fdf7bceed2c28af52


[ROCm/clr commit: 91bb64409b]
2021-01-18 22:33:25 +00:00
Todd tiantuo Li 505f246c74 SWDEV-267762 - add RMB(gfx1035) to deviceQuery
Change-Id: I5388d9083a1b45751f024474ec4e0ae38e1e9107


[ROCm/clr commit: e1c4b22a32]
2021-01-12 09:13:40 -08:00
Vladislav Sytchenko 949a42427e Disable oclruntime.OCLDynamic test
This test is causing a PSDB timeout. Not all systems can support
device enqueue on rocm.

Change-Id: I55a209877288e6cc96b2426bf960fa9a431ac7c3


[ROCm/clr commit: ed812e304a]
2020-12-14 12:30:10 -05:00
Cole Nelson a0549a85db Merge "packaging: conformant package names" into amd-master-next
[ROCm/clr commit: c775ab32ef]
2020-11-20 12:50:42 -05:00
Cole Nelson 982fb1b666 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>


[ROCm/clr commit: 2174367fb4]
2020-11-20 07:17:35 -08:00
Jason Tang 4fc5f10159 SWDEV-256292 - Fix build failure when using lightning to build
clang complains there are multiple definitions of ret_val

Change-Id: I949af23e0658b28b339b378c9c0e4681d83d5f5a


[ROCm/clr commit: ee2e91912b]
2020-11-09 11:39:03 -05:00
Alex Xie 86eae09771 SWDEV-254386 [Navi 2x] Add Navi IDs to ocltst test
Cherry pick from npi branch.

Change-Id: I4e72c5477d7e0ebb454d651d1f84866ce4d27ee5


[ROCm/clr commit: ebd1a4a150]
2020-10-27 16:00:45 -04:00
Reshabh Sharma 202d12ae03 SWDEV-253557 Strip debug symbols for release builds
Change-Id: I4f75a0c08020ecd76e1eec159f266cd1f754af92


[ROCm/clr commit: 255c168ad7]
2020-10-16 16:10:51 +05:30
Reshabh kumar Sharma 6b51a4e16a Revert "SWDEV-253557 Strip debug symbols for release builds"
This reverts commit 78e8224ad3.

Reason for revert: Breaks mainline build

Change-Id: Ia1fc5e5723ec688d47544cc26127b680fad59b58


[ROCm/clr commit: 3997b03026]
2020-10-16 04:03:07 -04:00
Reshabh Sharma 78e8224ad3 SWDEV-253557 Strip debug symbols for release builds
Change-Id: I50032cb6aae7b1ed1a95c8e84fa8ce5cce476570


[ROCm/clr commit: 4c15a8f190]
2020-10-15 23:41:27 -04:00
Jason Tang 0e19d02735 SWDEV-255321 - Support target names from Target ID feature
Change-Id: I45e5314dff2ee65dd402c38744279bf67501304d


[ROCm/clr commit: bad12583b0]
2020-10-06 09:00:54 -04:00
Vladislav Sytchenko 1f40ca06a6 Don't use CMAKE_SOURCE_DIR
Change-Id: I373e218850e72ca8fe7f76a7af3e559c485c569b


[ROCm/clr commit: bd4c6ce6dc]
2020-09-23 13:04:05 -04:00
Vladislav Sytchenko 9d006dee2d Correctly append CMAKE_SHARED_LINKER_FLAGS
Change-Id: Id207f7b7eea7420657162ed666fb4240e3b6e9a1


[ROCm/clr commit: c70ff63d87]
2020-09-23 13:04:02 -04:00
Jason Tang 342a8161a7 SWDEV-251394 - Support CL_DEVICE_IL_VERSION
Change-Id: If8459d6822d26107914f81d219e94165facd0827


[ROCm/clr commit: ac956ac8cb]
2020-09-10 18:09:15 -04:00
Jason Tang 0d1525545c Add support for CL_PROFILING_COMMAND_COMPLETE
Change-Id: I2acabab8975f7c8619c180795000cb47d4f532ca


[ROCm/clr commit: 7ec780519a]
2020-09-07 11:15:31 -04:00
Jason Tang 4500240354 Remove refering to gfxipVersion_
Change-Id: I06e3fe5c10ddf50674c69d7de68f208bbfb83f2f


[ROCm/clr commit: 6c13a34a04]
2020-08-24 14:38:16 -04:00
Julia jiang b2f831ca46 SWDEV-247185-update OpenCL build instructions in Readme
Change-Id: Id2835bfcbc3d19315c688a8160eedf367056ba5f


[ROCm/clr commit: ed1fcc7c63]
2020-08-06 12:10:36 -04:00
Freddy Paul af1916a2f9 Enable STATIC LINKING of COMGR
COMGR_DYN_DLL is used by rocclr to load COMGR as dynamic library.
Need to remove this flag while linking COMGR as static lib by
ROCclr.

Default option is set to link COMGR as dynamic library

Change-Id: I5631a8c1d896bd4d7e5ecf5ef5fa4f631cd2244d


[ROCm/clr commit: 00223c5697]
2020-07-22 16:07:05 -07:00
Tao Sang 03c1acd0f8 Let rocclr decide numa dependence
Change-Id: Idaf8ab1d0563ac39c352219a6dacf95745bdc6b0


[ROCm/clr commit: 56443c2c3d]
2020-07-19 23:29:59 -04:00
Pruthvi Madugundu 67591d6671 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


[ROCm/clr commit: b88a313eff]
2020-07-09 18:04:18 -07:00
Vlad Sytchenko 0611a0502a Add ability to run each ocltst test individually
Now one can run a single test by invoking `make test.ocltst.${module_name}.${test_name}`. Invoking `make test.ocltst.${module_name}` will still run all of the modules tests.

Change-Id: I31b384576cb09800e580e41c12528a276899b6c2
Signed-off-by: Vlad Sytchenko <Vladislav.Sytchenko@amd.com>


[ROCm/clr commit: 3be244fb34]
2020-07-06 15:56:46 -04:00
Matt Arsenault 4c38d6f0a7 Use option for BUILD_SHARED_LIBS
This avoids blindly overwriting the setting.

Change-Id: I38dff67f406c4547806a96f4ab220a7415d96242


[ROCm/clr commit: 03ed004255]
2020-06-30 15:01:46 -04:00
Jason Tang c0a9560c1b Fix CentOS build
Change-Id: Id0956f2a876077a3528c4fafc136586b95fdda70


[ROCm/clr commit: 0394f79d4d]
2020-06-29 18:49:48 -04:00
Jason Tang 3c0b0d9d92 Not to use fixnames
Change-Id: I50c9503cad1fc072edec989a4f82a27bb7bb3909


[ROCm/clr commit: 4666113db0]
2020-06-28 18:57:16 -04:00
Tao Sang f184916c46 Fix missing numa symbol in building libamdocl64.so
Change-Id: I77eca06345b11b5c8482ab626ef1b60c5fa20ec8


[ROCm/clr commit: 9171896d73]
2020-06-23 11:29:28 -04:00
Vlad Sytchenko 434a1719a3 Enable the use of some warnings when building OCL-ROCclr
Similar to http://gerrit-git.amd.com/c/compute/ec/vdi/+/375385, except no -Wno-strict-aliasing.

With this change only one warning shows up during the build - -Wdeprecated-declarations in cltrace.

Change-Id: Ie335eb9c45287ee1006e6bd65d54d67b41f79604


[ROCm/clr commit: ac3848a8e6]
2020-06-15 15:28:33 -04:00
Jason Tang 83153d4a2d Enable OCLReadWriteImage test on Linux
Change-Id: I613e5ff6dd0234515409b8d3f7277f5bbdd1bd20


[ROCm/clr commit: 17dafe33de]
2020-06-10 15:30:23 -04:00
Matt Arsenault e5ce842e8a Don't add -std flag to CMAKE_CXX_FLAGS
Use the cmake method, and consolidate setting the language standard in
one place.

Change-Id: I96826c31955b1553ed1beb94203c99933075bb0a


[ROCm/clr commit: dd5f255c7e]
2020-06-05 11:22:23 -04:00
Vlad Sytchenko 1f915dddd2 Disable oclruntime OCLPerfCounters test
For some reason the test is causing latest rocr to crash. Disabling for now to investigate.

Change-Id: I78996241e6756c36af4b7f5fcb34e915bf33573e


[ROCm/clr commit: ce2c28c745]
2020-06-03 13:57:40 -04:00
Vlad Sytchenko 30621ae614 Add cmake targets to run ocltst test modules
Tests are now excluded from the main build, however ocltst can still be built by running `cmake --build . --target ocltst`.

Test modules can be run by invoking the test_${module_name} target, for example `cmake --build . --target test_oclruntime`.

Change-Id: I6f40d3bd318e821e4fbf35ccfa395dc7036673cb


[ROCm/clr commit: 8790099ba9]
2020-06-03 13:55:28 -04:00
Vlad Sytchenko fbc4d1b788 Only build oclgl tests if OpenGL is installed on the system
Change-Id: I226f2e09c98a970ce8dce0b6f670ca13d868aeb6


[ROCm/clr commit: 876cf62e0e]
2020-06-02 13:31:29 -04:00
Jason Tang 428cf966e7 Use ROCMSetupVersion only when ROCM is found
Change-Id: I2d76762aaa6c89b2ba956dcb62b3f79f6208a365


[ROCm/clr commit: 1171ec72be]
2020-06-02 10:40:25 -04:00
Jason Tang 70404ac7d7 SWDEV-204566 - Use ROCMSetupVersion to set package version
Change-Id: I29b9f748291b3802de65c9f29f791050853c2d12


[ROCm/clr commit: 4dcfe78e56]
2020-06-01 16:39:35 -04:00
Vlad Sytchenko 627061d190 Add ocltst build files
Change-Id: I8fcff320efb677a5efa5ee48efe1a6bbb259539f


[ROCm/clr commit: 15b318b444]
2020-06-01 14:12:51 -04:00
Vlad Sytchenko 18ce996fe2 Initial source drop of ocltst
This only adds source files for ocltst and the following test modules - oclruntime, oclperf, oclgl, ocldx. There's no build files for now.

Change-Id: I0f8d9d074c45d82e92f7d30bf22753102f272f4f


[ROCm/clr commit: 75e6add24d]
2020-06-01 13:51:51 -04:00
Alex Xie a5f661537b Add more information into Readme file
Change-Id: Id3e484877eaf8123ad6c767caa5f3546c02f5d98


[ROCm/clr commit: f887aaa9d2]
2020-05-29 13:33:29 -04:00
Matt Arsenault de4f4383f6 Remove build hacks to support old manually set ROCclr variables
Change-Id: Iba8180b7260616a79723a1a9d2b0b206f178e735


[ROCm/clr commit: d191ba6585]
2020-05-27 12:53:27 -04:00
Alex Xie 02e1bd7d51 Move rocm include directory to the end of the list for include files
Fix compile error.

Before this change, there is compile error in my build computer. The cause is that /opt/rocm/include has an older version of CL header files.
When compiling, we should use header files from this opencl source code folders first.

This fix changes the order of include directories. Search the header files inside this opencl source code folders first.

Change-Id: I3420a634ed9e1b38b8e5201a0a39a36d61f97986


[ROCm/clr commit: a400051d3a]
2020-05-22 11:57:34 -04:00
Matt Arsenault 11eeb6cbf2 Use option for USE_COMGR_LIBRARY
Use standard cmake option handling, and switch to standard ON/OFF for
boolean. Try to maintain compatability with the "yes" check that build
scripts are now using.

Change-Id: Ia932e93f818c0897a87bfc49b070e36c7be7dd74


[ROCm/clr commit: aa0c163066]
2020-05-22 10:28:55 -04:00
Matt Arsenault b65ba80252 Fix include directories for cltrace
Change-Id: I8de82fa4b6ce7e1e869f1001d1710dc8673b7be5


[ROCm/clr commit: 7273fdedfe]
2020-05-19 21:41:16 -04:00
Jason Tang 1e58ddd549 Add dlerror to ICD to help future diagnosis
Change-Id: Ieb95252ab671ff666fceee3349637683078a0f89


[ROCm/clr commit: 601cf7d4bb]
2020-05-19 10:49:19 -04:00
Matt Arsenault 7bb37b41b9 Restore attempt to use find_package for ROCclr
7eda01ba broke this. This is still mostly a commit order hack until
the ROCclr change is submitted.

Change-Id: I43762963dbc66f1dc83916d2f0e9c90e4fcbf7c1


[ROCm/clr commit: 9f9d35ad86]
2020-05-18 14:34:35 -04:00
Ramesh Errabolu d09b2ebb3c Remove dependency on hsa-ext-rocr-dev package
Change-Id: I1b4032390c128e71a2f9a743b9db9b7bf7713e91


[ROCm/clr commit: 42150302e6]
2020-05-15 16:56:30 -05:00
Freddy Paul fe4475280e 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


[ROCm/clr commit: e43d427cdd]
2020-05-11 14:02:37 -07:00
Julia Jiang 6d06c2eb62 Merge "SWDEV-230009-Cltrace log is not created as expected-Update return type to vdi_agent" into amd-master-next
[ROCm/clr commit: 984d6545e6]
2020-05-11 13:50:59 -04:00
jujiang 515ef47896 SWDEV-230009-Cltrace log is not created as expected-Update return type to vdi_agent
Change-Id: Ice4083d0d3a061867f886119a4cc541e2048a328


[ROCm/clr commit: 1662b25dc6]
2020-05-08 18:56:25 -04:00
Jason Tang b07ec672bf Add dependency of hsa-rocr-dev and hsa-ext-rocr-dev
in-line with hip-on-vdi.

Change-Id: Ib0e1a5180eef409cfd0f1b5b9a42a2b663dfc0d3


[ROCm/clr commit: 372ebe7b00]
2020-05-08 13:23:37 -04:00