Maneesh Gupta
5d7f0b1798
[dtests] Fix random timeout failures in hipModuleLoadDataMultThreaded ( #1877 )
...
Limit the max threads that are launched to 16.
[ROCm/hip commit: 854afef281 ]
2020-02-17 11:16:20 +05:30
Maneesh Gupta and satyanveshd
e72b5a0187
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 0fb72d9e7f .
* Revert "Try to initialize the primary context on cuda"
This reverts commit 44e3908680 .
* updated test for nvidia path
* Add c++11 option for nvcc
Co-authored-by: satyanveshd <53337087+satyanveshd@users.noreply.github.com >
[ROCm/hip commit: e7120dd876 ]
2020-02-15 09:51:24 +05:30
Satyanvesh Dittakavi
8cfced9bfd
Add c++11 option for nvcc
...
[ROCm/hip commit: 3fb4135946 ]
2020-02-13 19:48:26 +05:30
Satyanvesh Dittakavi
802aa5f44e
updated test for nvidia path
...
[ROCm/hip commit: ead254cdd5 ]
2020-02-13 16:34:05 +05:30
Paul
ca0eb390a9
Revert "Try to initialize the primary context on cuda"
...
This reverts commit 44e3908680 .
[ROCm/hip commit: 26bb6a97a7 ]
2020-02-11 12:34:11 -06:00
Paul
f86740ff94
Revert "Push ctx to the stack as current"
...
This reverts commit 0fb72d9e7f .
[ROCm/hip commit: e82e3c2339 ]
2020-02-11 12:34:10 -06:00
Paul
0fb72d9e7f
Push ctx to the stack as current
...
[ROCm/hip commit: bff8cbe950 ]
2020-02-11 11:46:29 -06:00
Paul
44e3908680
Try to initialize the primary context on cuda
...
[ROCm/hip commit: fd98514113 ]
2020-02-11 11:26:24 -06:00
Paul
746c36ed8e
Skip test on cuda
...
[ROCm/hip commit: b9f97ec3fe ]
2020-02-10 17:23:58 -06:00
Paul
92ff502b92
Reduce threads on cuda
...
[ROCm/hip commit: 30e8dfdd86 ]
2020-02-10 16:37:34 -06:00
Paul
039171f6fd
Set context on each thread
...
[ROCm/hip commit: 2d9a2d866c ]
2020-02-10 16:01:53 -06:00
Paul
a3e2660669
Create context for cuda
...
[ROCm/hip commit: e5d077f70e ]
2020-02-10 15:52:34 -06:00
Paul
b6e01adc72
Add setDevice to try and initialize the context on cuda
...
[ROCm/hip commit: 29a257d79b ]
2020-02-10 13:37:45 -06:00
Maneesh Gupta
7753b3e827
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 e38db9fb6f .
[ROCm/hip commit: f8e1c01900 ]
2020-02-10 10:45:28 +05:30
Paul
3fa3e99a9a
Make threads a multiple of hardware concurrency
...
[ROCm/hip commit: 8e494cfce8 ]
2020-02-06 16:23:29 -06:00
Paul
5cfa3c626a
Add multithreaded test
...
[ROCm/hip commit: 5361424702 ]
2020-02-06 16:21:40 -06:00
lthakur
e340a8e921
[dtest] Update hipLaunchCoopMultiKernel.cpp ( #1844 )
...
used reinterpret_cast<uint32_t*> for numBlocks, as expected by hipOccupancyMaxActiveBlocksPerMultiprocessor() api.
[ROCm/hip commit: 4d472b777f ]
2020-02-04 19:37:38 +05:30
gandryey
42bc78d148
[dtest] RCCL multi device launch test ( #1731 )
...
Simple test for hipLaunchCooperativeKernelMultiDevice API.
[ROCm/hip commit: 48d1f766d5 ]
2020-02-04 08:53:43 +05:30
satyanveshd
e38db9fb6f
Match Occupancy APIs syntax with CUDA ( #1625 )
...
* Match Occupancy APIs syntax with CUDA and fix tests using these APIs
[ROCm/hip commit: fa98798b63 ]
2020-01-29 13:05:53 -08:00
Evgeny Mankov
abef353b5b
[HIP] Clean-up deprecated HIP error codes
...
hipErrorMemoryAllocation -> hipErrorOutOfMemory
hipErrorInitializationError -> hipErrorNotInitialized
hipErrorMapBufferObjectFailed -> hipErrorMapFailed
hipErrorInvalidResourceHandle -> hipErrorInvalidHandle
[ROCm/hip commit: 4921678b6c ]
2019-12-23 17:01:35 +03:00
Rahul Garg
f55b1cd6a4
[dtest] Rename hipExtLaunchMultiKernelMultiDevice dtest ( #1671 )
...
[ROCm/hip commit: 188752b2cb ]
2019-11-19 09:41:13 -08:00
Alex Voicu
3ea404a8ba
Add support for extended launch syntax. ( #1530 )
...
* Add support for extended launch syntax.
* Add unit test.
* Fix typo
* hipExtLaunchKernelGGL lives in hip_ext.h
Change-Id: Ice32dab0d43475fda65c6a910c11416871a8f2ff
* [dtest] remove redundant include from hipModuleGetGlobal dtest
[ROCm/hip commit: 69e74c3e96 ]
2019-11-16 22:24:07 -08:00
Rahul Garg
6968362d99
Rename hip/hip_hcc.h to hip/hip_ext.h ( #1341 )
...
* Rename hip/hip_hcc.h to hip/hip_ext.h
* Deprecate hip_hcc.h
[ROCm/hip commit: 579a4f36fa ]
2019-11-07 13:17:10 +05:30
Aryan Salmanpour
2ad99a6326
[hip][tests] Add two more workgroup sizes for testing hipLaunchCooperativeKernel ( #1613 )
...
[ROCm/hip commit: cf92fae9e6 ]
2019-11-05 12:32:46 +05:30
Rahul Garg
b68c8d2f60
Formatting changes
...
[ROCm/hip commit: 55f2a38120 ]
2019-10-30 18:12:51 -07:00
Rahul Garg
8429e15052
Formatting changes ,variable name and check update
...
[ROCm/hip commit: 4ab71216b4 ]
2019-10-30 18:09:21 -07:00
amd-lthakur
5e11495936
Excluded the test case for nvcc platform
...
[ROCm/hip commit: 4239c94fe5 ]
2019-10-25 15:52:11 +05:30
amd-lthakur
158cab3bb7
Refactored the file as suggested
...
[ROCm/hip commit: 564418c308 ]
2019-10-25 10:44:38 +05:30
amd-lthakur
629a933b63
Update matmul.cpp
...
[ROCm/hip commit: 318df5c36b ]
2019-10-25 09:22:07 +05:30
amd-lthakur
4b771db194
Update hipExtModuleLaunchKernel.cpp
...
[ROCm/hip commit: cd25149225 ]
2019-10-25 09:19:49 +05:30
amd-lthakur
297a20eac7
Adding a directed test case for hipExtModuleLaunchKernel() api.
...
[ROCm/hip commit: 8b496e4715 ]
2019-10-24 15:06:28 +05:30
ansurya
b37210badc
Fix for directed tests failure ( #1511 )
...
directed_tests/runtimeApi/module/hipLaunchCooperativeKernel.tst - Disabling test temporarily until driver support is available.
directed_tests/runtimeApi/memory/hipArray.tst - Disabling test temporarily to reimplement it correctly.
[ROCm/hip commit: 87834500b9 ]
2019-10-10 19:58:41 +05:30
AlexBinXie
e404049a71
[hip] Added gfx803,gfx1010,gfx1012 kernel binary hipModule test. ( #1444 )
...
This is to address hipModule test seg fault in GFX1010
[ROCm/hip commit: b3e6ba50c3 ]
2019-09-30 10:38:37 +05:30
Aryan Salmanpour
8e18dee555
[hip][tests] add a unit test for testing hipLaunchCooperativeKernel ( #1361 )
...
* [hip][tests] add a unit test for testing hipLaunchCooperativeKernel
* use __ockl_grid_sync function
* remove already defined __ockl_grid_sync function
* use sync function for grid synchronization
[ROCm/hip commit: 48880a017e ]
2019-09-16 08:31:09 +00:00
wkwchau
7676b86f12
Added support of hipOccupancyMaxActiveBlocksPerMultiprocessor & hipOc… ( #1240 )
...
* Added support of hipOccupancyMaxActiveBlocksPerMultiprocessor & hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags APIs
* Taking into account of SGPR usage to determine the max active blocks in hipOccupancyMaxActiveBlocksPerMultiprocessor()
[ROCm/hip commit: 4b18b321f7 ]
2019-08-01 08:58:48 +00:00
Rahul Garg
d7973153ca
Add HIP init in hipFuncGetAttributes ( #1262 )
...
* Add HIP init in hipFuncGetAttributes
* [dtest]Remove explicit hip init call in hipFuncGetAttributes dtest
[ROCm/hip commit: 0517c30507 ]
2019-07-31 15:42:08 +00:00
Aryan Salmanpour
563b385ad6
[hip][tests] add a unit test for using hipExtLaunchMultiKernelMultiDevice API ( #1250 )
...
[ROCm/hip commit: f3c4952f80 ]
2019-07-24 07:57:39 +00:00
ansurya
de3a7dfe43
[HIP][Tests] Added new testcases for Module API ( #1150 )
...
* [HIP][tests] New testcases for module api
* [HIP][Tests]Support for CUDA devices
* Updated tests as per latest master & test GetGlobal to work on all platforms
[ROCm/hip commit: fa4d6b353a ]
2019-07-19 04:45:20 +00:00
kpyzhov
5b1910d140
Added gfx906 kernel binary to the HIPFB file for hipModule test. ( #1215 )
...
[ROCm/hip commit: e6a8d1daee ]
2019-07-12 03:13:45 +00:00
wkwchau
40bd111519
Implement the hipOccupancyMaxPotentialBlockSize function ( #1162 )
...
* Implement the hipOccupancyMaxPotentialBlockSize function
* Replaced hipGetDeviceProperties() call by ihipGetDeviceProperties() in ihipOccupancyMaxPotentialBlockSize()
* Add test for hipOccupancyMaxPotentialBlockSize in Module API
* Added extern declaration for ihipGetDeviceProperties() to be accessed inside ihipOccupancyMaxPotentialBlockSize()
* fixed hipOccupancyMaxPotentialBlockSize test build issue
* Fix hipOccupancyMaxPotentialBlockSize dtest
* Add BUILD_CMD in hipOccupancyMaxPotentialBlockSize dtest
* Revert "Add BUILD_CMD in hipOccupancyMaxPotentialBlockSize dtest"
This reverts commit 0480ff56f1441fc515d2c26ce33783e303423938.
* Disable hipOccupancyMaxPotentialBlockSize dtest on NVCC
* move extern declaration of ihipGetDeviceProperties to hip_module.cpp
* Update the limiation of 32 wavefronts per CU and 800/512 SGPRs for VI/pre-VI chips to calculate the occupancy
[ROCm/hip commit: d492f1fd6b ]
2019-06-20 05:58:29 +05:30
Konstantin Pyzhov
a4202d5ce6
Updated kernel binary file for hipModule test.
...
[ROCm/hip commit: a8b07ada2f ]
2019-05-21 13:21:48 -04:00
Konstantin Pyzhov
769171e2bb
Upload pre-built kernel binary for hipModule test.
...
[ROCm/hip commit: c8f92bebf3 ]
2019-05-15 07:19:40 -04:00
Maneesh Gupta
242aeaf133
[dtests] Fix hipModule test for nvcc path
...
Change-Id: If918b87b848a825242e06b0d552a7be188a1c4b6
[ROCm/hip commit: 88abfde2f8 ]
2019-05-09 18:17:19 +05:30
Maneesh Gupta
09f8c228cf
[dtests] Add hipModule test to unit tests
...
Change-Id: I1dac38f8580265e2e9c82d88e4f070a2ff87f60b
[ROCm/hip commit: 79843f3b12 ]
2019-05-09 11:36:46 +05:30
Maneesh Gupta
fa07d40cdd
[hit] Rename RUN -> TEST & RUN_NAMED -> TEST_NAMED
...
Change-Id: I75e24f15129973cee15fc9dac65d678bd2172074
[ROCm/hip commit: 9f2d1453fb ]
2019-05-09 09:59:18 +05:30
Maneesh Gupta
9d97f114b7
[dtests] Fix nvcc path build errors in hipFuncGetAttributes.tst
...
Change-Id: I000bed69162897f7b6edd733ed6e9acc93beb0ed
[ROCm/hip commit: 8b93cd67a6 ]
2018-05-30 11:26:11 +05:30
Alex Voicu
d5f965c44a
Add support for the hipFuncGetAttributes interface.
...
[ROCm/hip commit: 13274ce559 ]
2018-05-11 03:35:10 +01:00
Maneesh Gupta
4f42ee762d
Apply .clangformat to all repo source files
...
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
[ROCm/hip commit: 1ba06f63c4 ]
2018-03-12 11:29:03 +05:30
Alex Voicu
962bf7bfda
This implements the trivial change needed to move back from the hip{Something}_{x, y, z} macros to the natural CUDA syntax of Something.{x, y, z}. This is contained in lines 384-404 in hip_runtime.h. All of the other changes have to do with changing unit tests to use this syntax. The macros are retained for backwards compatibility.
...
[ROCm/hip commit: cffd0e14eb ]
2017-11-19 01:54:12 +00:00
Aditya Atluri
a2c405c265
added hipFuncSetCacheConfig API for nvcc path
...
Change-Id: I87fae35bc0e10a0dca5ae1c5015fe5d9e52a1d0d
[ROCm/hip commit: fc6248ce82 ]
2017-04-26 18:56:57 -05:00