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

815 Коммитов

Автор SHA1 Сообщение Дата
Vladislav Sytchenko 303e04fa55 Enable simpleTexture3D test for VDI
Change-Id: Ida65de6e1cae64ac97b624eaab1340877a6fba73


[ROCm/clr commit: dafed1a009]
2020-03-13 18:34:39 -04:00
Julia Jiang cf35a2a1de Merge "SWDEV-225337-Fix test failure in hipNormalizedFloatValueTex kernel" into amd-master-next
[ROCm/clr commit: 9b436779e4]
2020-03-09 16:58:10 -04:00
jujiang 0279f1d89e SWDEV-225337-Fix test failure in hipNormalizedFloatValueTex kernel
Change-Id: I3a4c3b58578703993640a8d28242ec1a0ed5ff60


[ROCm/clr commit: 09d442d7c3]
2020-03-09 15:21:29 -04:00
Sameer Sahasrabuddhe 7973b6d45d enable hostcall tests
Change-Id: Ic6efe71c868defc53be214acd7e0907109ec1410


[ROCm/clr commit: 5fc32755b7]
2020-03-09 14:41:37 -04:00
Lad, Aditya eca6c4f001 Merge branch 'master' into amd-master-next
Conflicts:
	CMakeLists.txt
	tests/src/texture/simpleTexture2DLayered.cpp
	tests/src/texture/simpleTexture3D.cpp

Change-Id: I4aa4754d391b5f37ddf15fa0bcfc84d9da020119


[ROCm/clr commit: e7fdb3d796]
2020-03-06 14:10:44 -05:00
Tao Sang 8eb086a967 Merge "Fix hipExtLaunchMultiKernelMultiDevice compilation issue" into amd-master-next
[ROCm/clr commit: 1216153c66]
2020-03-06 12:32:55 -05:00
jujiang 3296a1c526 SWDEV-225338-simpletexture3D failed-Fix bug in test app
Change-Id: I106d1951368e0c7a8ccd6aa462c22f81e8332cdc


[ROCm/clr commit: 75c90a4bf1]
2020-03-05 16:50:27 -05:00
agodavar 79da206f97 Enable tests that are passing on hip-vdi
Change-Id: I7de965f7e8bb7e4d0fa61cd584f0cd118c1e212e


[ROCm/clr commit: f360ff6479]
2020-03-05 16:08:51 +05:30
agodavar 1c828b7575 Fix hipExtLaunchMultiKernelMultiDevice compilation issue
Fix compilation error on hip-hcc+clang , hip-vdi+clang
Enabled hipExtLaunchMultiKernelMultiDevice test on hip-vdi path
hipExtLaunchMultiKernelMultiDevice common declaration for all paths

Change-Id: I76031840614fce8e12a8e845548fa43a389a741a


[ROCm/clr commit: 5a6c605730]
2020-03-04 15:38:14 -05:00
Payam 64638a230f reverting part of http://gerrit-git.amd.com/c/compute/ec/hip/+/326145
the test still fails

Change-Id: I2e5968115a717e8482be670d9fb8472e391922d7


[ROCm/clr commit: a52975bc03]
2020-03-04 13:49:58 -05:00
agodavar ac317d0029 Enable tests hipTestDeviceSymbol,hipTestConstant and p2p_copy_coherency on hip-vdi
SWDEV-225266: [HIP-VDI] HIP-VDI disabled tests (p2p_copy_coherency.cpp)
SWDEV-225388: hipTestDeviceSymbol.cpp & hipTestConstant.cpp failed to build on hip-vdi

For hipTestDeviceSymbol.cpp & hipTestConstant.cpp tests:
Currently "__HIP_VDI__" flag is enabled in CMakeLists.txt, but when application is compiled with hipcc,  
__HIP_VDI__ is not defined to differentiate if compiled for VDI/HCC for headers.

For ./src/runtimeApi/memory/p2p_copy_coherency.cpp:
Fixed compilation issue to include only when compile for HCC runtime "<hc_am.hpp> not found"
Currently test is disabled to run on all platforms. When validated on multi-GPU machine,
memcpy between multiple GPUs via GPU synchronization is not working on hcc and vdi path.
Need to validate on nvidia machine to know if test is valid. Disabled GPU synchronization test for now.

For ./src/runtimeApi/module/hipModuleTexture2dDrv.cpp:
updated test to generate tex2d_kernel.code object in build directory. Currently ctest looks for it in build directory.

Change-Id: I629d395a919c2440d921422716944c7940ed6010


[ROCm/clr commit: ae465bc338]
2020-03-04 10:07:09 -05:00
Vladislav Sytchenko 7d51c87f76 SWDEV-219799
Add missing __hip_pinned_shadow__ attribute to the hipModuleTexture2dDrv test.

Change-Id: I2c213a4108611c1af691388f268cac429b81a313


[ROCm/clr commit: 818a65ff66]
2020-03-03 11:49:00 -05:00
Jatin Chaudhary ee8cee7d35 [dtests] __shfl_up and __shfl_down tests (#1899)
[ROCm/clr commit: dacc90f415]
2020-02-28 16:48:15 +05:30
saleelk 21712e6fb8 Fix HIPRTC headers to export C style symbols (#1879)
[ROCm/clr commit: 40a28e767e]
2020-02-28 16:47:29 +05:30
jiabaxie 43818d733a Cleaned up error messages for HipEnvVarDriver test (#1825)
There were several error messages that appeared even if the hipEnvVarDriver.exe test passes and executes successfully. Now it is cleaned up. The following are those instances:

* When popen searches for directed_test directory but does not find it, it outputs an error, then finds the hipEnvVar at the same level. Currently the fix will prompt the test to only output an error if both searches for hipEnvVar fails.
* When assertion is used towards the later half of the test, conditions were set to specifically hide the devices, resulting in No Hip Device detected in the latter half of the test. The fix will make these errors not appear as they are intended to not find any devices. Assertions themselves are untouched.

HipEnvVarDriver.cpp has also been refactored. Reading HipEnvVar will now happen in a helper function for getDeviceNumber and getDevicePCIBusNumRemote, as the code to read HipEnvVar were really similar in them.


[ROCm/clr commit: e747efe2b4]
2020-02-28 16:46:12 +05:30
Payam b20312db7a removing 3 tests temporarily to enable hiptests
Change-Id: I8c45791aaf88628850462aff90979c147cb85f64


[ROCm/clr commit: 03b8524dbd]
2020-02-25 19:01:34 -05:00
Tao Sang 6f25af095e Merge "Generating hiprtc lib with hcc+hip-clang" into amd-master-next
[ROCm/clr commit: 1d22c5b925]
2020-02-25 14:46:24 -05:00
Vladislav Sytchenko d4bb8d522d Reeanble texture tests for VDI
Enable hipBindTex2DPitch and hipBindTexRef1DFetch

Change-Id: I36a3252e25d1ed844967ec117e1f1951004cba11


[ROCm/clr commit: b1d2e581ff]
2020-02-24 15:24:00 -05:00
Jatin Chaudhary 97937573d4 Generating hiprtc lib with hcc+hip-clang
Review comments - generate hiprtc lib everytime when HIP_PLATFORM is hcc

Changes for hip-clang

Removing pre processor directive to simplify

Change-Id: Id38ab368362b58ee0458baeb8051fea709ae6bba


[ROCm/clr commit: 8bf287ef18]
2020-02-24 11:44:17 -05:00
Tao Sang 10021089af Add __hip_pinned_shadow__ for texture
Add missing __hip_pinned_shadow__ for texture in tex2d_kernel test.

Change-Id: Iefc96084fec8f84a1d1bb979998ffb95b4011f0b


[ROCm/clr commit: ba494c64cf]
2020-02-20 20:01:28 -05:00
Christophe Paquot 1f32dbad00 Merge "HIP-HCC + Clang fix failing texture tests(SWDEV-223622)" into amd-master-next
[ROCm/clr commit: 644dad178c]
2020-02-19 14:57:14 -05:00
Jatin Chaudhary 1b17cc297a Removing gcc test for clang
Change-Id: Iccf00221a07be920683207daa9ed0e0949259623


[ROCm/clr commit: e1024a249a]
2020-02-19 11:09:47 -05:00
agodavar 37745e6f1b HIP-HCC + Clang fix failing texture tests(SWDEV-223622)
Change-Id: I1c0a7059c6bba1ea2e39dc6634b32d006c07d1f5


[ROCm/clr commit: 63c1d28a4b]
2020-02-19 07:03:57 -05:00
Rahul Garg 6f1d14c96d Fix hipMemcpy3D (#1798)
Fixes #1790 and #1791. hipMemcpy3D still requires further refactoring for different input and output combinations.

[ROCm/clr commit: ec84c16d75]
2020-02-17 19:35:35 +05:30
Maneesh Gupta 734b90c592 [dtests] Fix random timeout failures in hipModuleLoadDataMultThreaded (#1877)
Limit the max threads that are launched to 16.

[ROCm/clr commit: 2ec55fde47]
2020-02-17 11:16:20 +05:30
Tao Sang 0292fd9991 Temporarily comment out Hcc-specific APIs for CLang compiler
Temporarily comment out Hcc-specific template functions
hipExtLaunchKernelGGL and hipOccupancyMaxPotentialBlockSize for CLang
compiler so that all test cases under hip/samples can be built
successfully for Clang + Hip/Hcc runtime.

Change-Id: Iafc761257be4a7b34eafa6759a01f369570cd6ce


[ROCm/clr commit: 15b91e9f1e]
2020-02-16 22:26:47 -05:00
Tao Sang 53e62f704d Support defaultDriver test with Clang+Hcc Runtime
Fix the following issues:
1.Ignore hidden arguments of kernel functions.
2.Look up both origial function name and function name with .kd postfix
when argments are retrived from module.
3.Addition, fix compiling issue of LaunchKernel test app.

Change-Id: I9400943f2f02433cb4409b19c0cac3626c2bc454


[ROCm/clr commit: eb8c4d1ce2]
2020-02-15 19:29:13 -05:00
vsytch fd7dfa19d1 Add missing __hip_pinned_shadow__ attributes to the texture global vars. (#1866)
[ROCm/clr commit: 5afe43b1aa]
2020-02-15 09:52:25 +05:30
Maneesh Gupta 2b1a99ff12 Use deque instead of vector for code readers so that the iterators and references will be stable (#1851)
* Use deque instead of vector for code readers so that the iterators and references will be stable

* Fix compile error

* Assign the iterator

* Add multithreaded test

* Make threads a multiple of hardware concurrency

* Output on failure

* Add setDevice to try and initialize the context on cuda

* Create context for cuda

* Set context on each thread

* Reduce threads on cuda

* Skip test on cuda

* Try to initialize the primary context on cuda

* Push ctx to the stack as current

* Revert "Push ctx to the stack as current"

This reverts commit c1b707ff63.

* Revert "Try to initialize the primary context on cuda"

This reverts commit d9cbd5a143.

* updated test for nvidia path

* Add c++11 option for nvcc

Co-authored-by: satyanveshd <53337087+satyanveshd@users.noreply.github.com>


[ROCm/clr commit: e085417370]
2020-02-15 09:51:24 +05:30
Nick Curtis e9ee5a3719 Implement long / long long shuffles (#1829)
Implement additional data-types for shuffles (long and long long).
Based upon the double implementation.


[ROCm/clr commit: 5b0f34c59b]
2020-02-15 09:51:09 +05:30
Payam ca7c148089 removing oocupancy tests from hip-vdi for now
Change-Id: I06e966d07021af87fa2c195e4bbaf6bcc336658d


[ROCm/clr commit: 9bdc203a99]
2020-02-13 21:40:06 -05:00
Satyanvesh Dittakavi 373da28853 Add c++11 option for nvcc
[ROCm/clr commit: 2034ed3561]
2020-02-13 19:48:26 +05:30
Satyanvesh Dittakavi 360f321e76 updated test for nvidia path
[ROCm/clr commit: 627d9a1f46]
2020-02-13 16:34:05 +05:30
Laurent Morichetti abe27cad61 Merge branch 'master' into amd-master-next
Change-Id: Ibb7775e7acd263d2ece40a241517bbd15976fdd4


[ROCm/clr commit: 9b3e214952]
2020-02-12 00:14:07 -08:00
Paul 069f2672b9 Revert "Try to initialize the primary context on cuda"
This reverts commit d9cbd5a143.


[ROCm/clr commit: dd6676dadf]
2020-02-11 12:34:11 -06:00
Paul 509d8096a5 Revert "Push ctx to the stack as current"
This reverts commit c1b707ff63.


[ROCm/clr commit: cd279cd574]
2020-02-11 12:34:10 -06:00
Paul c1b707ff63 Push ctx to the stack as current
[ROCm/clr commit: e8a7cc6957]
2020-02-11 11:46:29 -06:00
Paul d9cbd5a143 Try to initialize the primary context on cuda
[ROCm/clr commit: 86cdb30195]
2020-02-11 11:26:24 -06:00
Paul 5e16db1f16 Skip test on cuda
[ROCm/clr commit: accdd882dc]
2020-02-10 17:23:58 -06:00
Paul e6663a7c23 Reduce threads on cuda
[ROCm/clr commit: 5d24a2beef]
2020-02-10 16:37:34 -06:00
Paul 44c4b72f83 Set context on each thread
[ROCm/clr commit: 7a6e88480b]
2020-02-10 16:01:53 -06:00
Paul 8fb4e25cf1 Create context for cuda
[ROCm/clr commit: bb145e77ae]
2020-02-10 15:52:34 -06:00
Paul 218994969f Add setDevice to try and initialize the context on cuda
[ROCm/clr commit: 9494d0e3c9]
2020-02-10 13:37:45 -06:00
Maneesh Gupta a21b1f84cb Revert "Match Occupancy APIs syntax with CUDA (#1625)" (#1857)
Reverting this for now till we figure out how to avoid the build
breakage.

This reverts commit 2c6e880e05.

[ROCm/clr commit: d032637934]
2020-02-10 10:45:28 +05:30
Payam a5fdb0c135 Excluding vdi platform for now from the following tests so we can build
Change-Id: I651255c2515a62c8bdfdd17a3ac85c3d66a5761b


[ROCm/clr commit: 141aa8e5dc]
2020-02-07 02:16:05 -05:00
Paul daaa1ebb80 Make threads a multiple of hardware concurrency
[ROCm/clr commit: fb8c7cb3ec]
2020-02-06 16:23:29 -06:00
Paul b29fe7e893 Add multithreaded test
[ROCm/clr commit: bf69c7ae32]
2020-02-06 16:21:40 -06:00
Laurent Morichetti 3cfd9b4f6a Merge branch 'master' into amd-master-next
Change-Id: Ib7e7824073f4dfc391fb3833fc90e11b327d3c22


[ROCm/clr commit: c33903b5da]
2020-02-05 14:56:08 -08:00
vsytch e2b6794a07 Device texture functions should not normalize the sampled pixel (#1826)
* Device texture functions should not normalize the sampled pixel. This is already done by HW.
* Add support to use h/w capability for normalized float data convertion for driver API's

Co-authored-by: ansurya <50609411+ansurya@users.noreply.github.com>


[ROCm/clr commit: fa363ae721]
2020-02-05 20:56:17 +05:30
lthakur a5409a5556 [dtest] Update hipLaunchCoopMultiKernel.cpp (#1844)
used reinterpret_cast<uint32_t*> for numBlocks, as expected by hipOccupancyMaxActiveBlocksPerMultiprocessor() api.

[ROCm/clr commit: 2ef4dead24]
2020-02-04 19:37:38 +05:30