Commit Graph

24 Commits

Author SHA1 Message Date
Jason Tang a3fe0fafe2 SWDEV-1 - Disable OCLAtomicCounter for now
OCLAtomicCounter should only be run when the compiler is HSAIL.

Change-Id: I862e23b22157d2c25bc5697fa58079c78040f5f5
2022-04-20 16:38:48 -04:00
taosang2 76c6dcd558 SWDEV-1 - Add EMU_ENV option
Fix FEAT-39125
Add EMU_ENV option. If it is ON, the building is for
emulation environment, thus some logics can be adjusted
to match emulation environment. If it is OFF, the
building is for regular environment.
Currently only ocltst will use the option. But it can
be used for other modules.

Change-Id: I54e1bc1309e82794b41fca2ae1f01f004138dced
2021-12-03 10:03:00 -05:00
Jason Tang b1e9a4227c SWDEV-301289 - Enable building and installing ocltst on Windows
Change-Id: I512dbcb96dd6a7c52a5ebad819043fdd0138215d
2021-10-25 14:10:15 -04: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
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
jujiang 422a26142d SWDEV-286322 - clean up trailing white space
Change-Id: Ie47bc977e1598356b455957d96f9afa37794c1fd
2021-09-01 14:53:14 -04:00
agunashe 5a0ecc8e48 SWDEV-293742 - Update copyrights end year for opencl repo
Change-Id: I0ce8369a7ef569ac82c6e20266d0c98331a43e08
2021-07-08 21:55:55 -07:00
Julia Jiang 82156484b4 SWDEV-291787 - Update files with proper EOL
Change-Id: I3be96a3bb7d1d944f3a14b595df8ec533af6f953
2021-07-07 18:03:52 -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 294318c8c6 SWDEV-240001 - Revert "Disable oclruntime OCLPerfCounters test"
This reverts commit ce2c28c745.

Change-Id: Ib2ea933c456d76e4e7b20e759d43dd74064267ba
2021-03-09 10:55:56 -05:00
Vladislav Sytchenko b620121390 SWDEV-240001 - OCLPerfCounters target ID changes
We don't care about target ID features in this test, so we can simply
strip them away to maintain compatability with the internal test table.

Change-Id: I44591a052c02f9e01876a8946f99cfedee371233
2021-03-09 10:55:39 -05:00
Todd tiantuo Li 280b759175 Merge "SWDEV-267762 - add RMB(gfx1035) to deviceQuery" into amd-staging 2021-01-25 19:40:02 -05:00
Vladislav Sytchenko 290a16716d SWDEV-264411 - Disable OCLDynamicBLines test
Change-Id: I067afa99b988e0b32edee7d27c1403d31775655c
2021-01-22 16:55:18 -05:00
Todd tiantuo Li e1c4b22a32 SWDEV-267762 - add RMB(gfx1035) to deviceQuery
Change-Id: I5388d9083a1b45751f024474ec4e0ae38e1e9107
2021-01-12 09:13:40 -08:00
Vladislav Sytchenko ed812e304a Disable oclruntime.OCLDynamic test
This test is causing a PSDB timeout. Not all systems can support
device enqueue on rocm.

Change-Id: I55a209877288e6cc96b2426bf960fa9a431ac7c3
2020-12-14 12:30:10 -05:00
Alex Xie ebd1a4a150 SWDEV-254386 [Navi 2x] Add Navi IDs to ocltst test
Cherry pick from npi branch.

Change-Id: I4e72c5477d7e0ebb454d651d1f84866ce4d27ee5
2020-10-27 16:00:45 -04:00
Jason Tang bad12583b0 SWDEV-255321 - Support target names from Target ID feature
Change-Id: I45e5314dff2ee65dd402c38744279bf67501304d
2020-10-06 09:00:54 -04:00
Vlad Sytchenko 3be244fb34 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>
2020-07-06 15:56:46 -04:00
Jason Tang 17dafe33de Enable OCLReadWriteImage test on Linux
Change-Id: I613e5ff6dd0234515409b8d3f7277f5bbdd1bd20
2020-06-10 15:30:23 -04:00
Vlad Sytchenko ce2c28c745 Disable oclruntime OCLPerfCounters test
For some reason the test is causing latest rocr to crash. Disabling for now to investigate.

Change-Id: I78996241e6756c36af4b7f5fcb34e915bf33573e
2020-06-03 13:57:40 -04:00
Vlad Sytchenko 8790099ba9 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
2020-06-03 13:55:28 -04:00
Vlad Sytchenko 876cf62e0e Only build oclgl tests if OpenGL is installed on the system
Change-Id: I226f2e09c98a970ce8dce0b6f670ca13d868aeb6
2020-06-02 13:31:29 -04:00
Vlad Sytchenko 15b318b444 Add ocltst build files
Change-Id: I8fcff320efb677a5efa5ee48efe1a6bbb259539f
2020-06-01 14:12:51 -04:00
Vlad Sytchenko 75e6add24d 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
2020-06-01 13:51:51 -04:00