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
Maneesh Gupta
2f957147c9
[dtests] Temporarily disable hiprtc tests
...
Change-Id: I87c0c01837e7b59b11d99fb94d679a765f914da5
[ROCm/hip commit: bd4d1838f2 ]
2019-05-31 16:39:33 +05:30
Maneesh Gupta
4b19bd3736
Merge pull request #1124 from kpyzhov/hipModule-test
...
Updated kernel binary file for hipModule test.
[ROCm/hip commit: 35aac8e8ce ]
2019-05-24 14:16:03 +05:30
Maneesh Gupta
bc2f291f49
Merge pull request #1121 from kpyzhov/hipStreamSync2-test
...
Disable hipStreamSync2 test for hip-clang.
[ROCm/hip commit: d840268636 ]
2019-05-24 14:15:54 +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
993f323887
Disable hipStreamSync2 test for hip-clang.
...
[ROCm/hip commit: 7cbaa5082b ]
2019-05-20 02:13:30 -04:00
Alex Voicu
d5a3acfd69
Add HIPRTC, glorious ersatz for NVRTC ( #1097 )
...
* Add ersatz for NVRTC.
* Fix extraneous paren and use correct namespace.
* Use lowerCamelCase (yuck, yuck) consistently.
* Link against FS when building hiprtc lib.
* Correctly mark Manipulators. Fix dual compile.
* Add unit tests. Extend HIT to accept linker options.
* Make sure the HIPRTC library is installed.
* Better logging. Try to auto-detect the target.
* Stop specifying the target explicitly.
* Add missing flavour of `hipModuleLaunchKernel`.
* Program was already destroyed.
* Don't use `--genco`. Fix mangled name trimming.
* Fix HIPRTC breakage due to upstream noise.
* [dtests] Replace RUN -> TEST in hiprtc tests
Change-Id: Ie499e92dfe4e5c94634b1c2b76cf52d241bcfea3
* [hit] Set HIP_PATH to HIP_ROOT_DIR for all tests
Change-Id: Ib0ad1f99bc71c03e363e055dd508a7a4a210680a
[ROCm/hip commit: ccfb764a59 ]
2019-05-16 18:28:54 +05:30
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
8dd98b8c82
[dtests] Add complex_loading_behavior test
...
Change-Id: Iadf135cb727a1a3761abef20336d652b159c7dcd
[ROCm/hip commit: eb637766b9 ]
2019-05-09 18:03:42 +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
5f54b7f9a6
Merge pull request #1075 from mhbliao/hliao/master/test_fix2
...
[test] Add device variant of `std::declval`.
[ROCm/hip commit: f931152280 ]
2019-05-07 16:15:01 +05:30
Maneesh Gupta
13d2c76d3d
Merge pull request #1074 from mhbliao/hliao/master/test_fix
...
[test] Use explicit cast for address space cast.
[ROCm/hip commit: 1d4941e487 ]
2019-05-07 16:09:15 +05:30
Maneesh Gupta
fb8d225e25
Merge pull request #1073 from kpyzhov/multi-thread-device-test
...
hipMultiThreadDevice test: Reduced maximum number of created HIP stre…
[ROCm/hip commit: 98ab402fcb ]
2019-05-07 16:08:37 +05:30
Maneesh Gupta
d6e2d71d99
Merge pull request #1072 from kpyzhov/master
...
Refined hipSetDevice test.
[ROCm/hip commit: fea21dc6d5 ]
2019-05-07 16:07:36 +05:30
Maneesh Gupta
b6393eb059
Merge pull request #1069 from mhbliao/hliao/master/test_cleanup
...
[test] Remove unused common routines.
[ROCm/hip commit: 730763c817 ]
2019-05-07 16:02:57 +05:30
Michael LIAO
d71327882c
[test] Add device variant of std::declval.
...
- Current clang disallows any invocation of wrong-side functions even
under context with type-inspection only. Work around that by adding a
variant of `std::decl` with `__device__` attribute.
[ROCm/hip commit: 4fbfb646f6 ]
2019-05-03 15:58:31 -04:00
Michael LIAO
cb55dc384a
[test] Use explicit cast for address space cast.
...
[ROCm/hip commit: 2746d95906 ]
2019-05-03 14:56:00 -04:00
Konstantin Pyzhov
ae391b3211
hipMultiThreadDevice test: Reduced maximum number of created HIP streams on Windows.
...
[ROCm/hip commit: e29c9d50a6 ]
2019-05-03 05:43:30 -04:00
Konstantin Pyzhov
45eb04ea5c
Refined hipSetDevice test.
...
[ROCm/hip commit: 069fb7e486 ]
2019-05-03 05:39:45 -04:00
Michael LIAO
b7ae0b6442
[test] Remove unused common routines.
...
- Remove used common routines, which variadic functions, not supported
feature, are used.
[ROCm/hip commit: 16a27e06ee ]
2019-05-02 12:34:07 -04:00
Michael LIAO
e637e72364
[Device Function] Fix implementation of __bitinsert_u64
...
- It's a common mistake by assuming 1 << shamt would be promoted to
64-bit, if shamt is a 64-bit integer. That's not the case. Replace
that left shift to a 64-bit one to ensure it won't fall into undefined
behavior.
- Fix the host-side implementation as well for device function testing.
[ROCm/hip commit: 9bd2d5746d ]
2019-04-30 08:59:13 -04:00
Rahul Garg
c01236f679
Add hipMallocManaged default functional support ( #1036 )
...
* Add hipMallocManaged default functional support
* Fix build error
* Add dtest
[ROCm/hip commit: 2bc2c46d4d ]
2019-04-24 16:50:03 +05:30
Rahul Garg
d0951a9c20
Fix D2DAsync test
...
[ROCm/hip commit: e5e7651a4a ]
2019-04-18 07:35:06 +05:30
Maneesh Gupta
df7d8c46ed
Merge pull request #932 from ROCm-Developer-Tools/feature_maybe_dlopen_test
...
Add one test case for complex dynamic loading behavior
[ROCm/hip commit: 0c4a40efcc ]
2019-03-06 17:32:23 +05:30
Maneesh Gupta
54c72c1079
Update hipMemset.cpp
...
Address build issues on nvcc path.
[ROCm/hip commit: 51f29b9cee ]
2019-03-05 12:11:11 +05:30
Wen-Heng (Jack) Chung
085c6c15b2
Add direct test for hipMemsetD32 and hipMemsetD32Async
...
[ROCm/hip commit: bfde8a7fab ]
2019-03-04 17:20:32 +00:00
Rahul Garg
7a9ebee08a
Fix review comments
...
[ROCm/hip commit: 131c0ea326 ]
2019-03-02 23:38:37 +05:30
Rahul Garg
4093c03dd7
Fix hipMemset test for HIP/NVCC
...
[ROCm/hip commit: 77c6d5451f ]
2019-03-01 03:46:57 +05:30
Rahul Garg
fa0c9d8a73
Update hipMemset test
...
[ROCm/hip commit: 026dc9457e ]
2019-02-28 06:54:49 +05:30
Wen-Heng (Jack) Chung
c79a5a798e
Add one test case for complex dynamic loading behavior
...
Existing HIT syntax doesn't seem to support the expected build and run steps
for this test.
[ROCm/hip commit: 8e5bb3c57a ]
2019-02-25 17:03:31 +00:00
Maneesh Gupta
3686db5456
Merge pull request #863 from aaronenyeshi/add-dot-instructions
...
Add Dot functions as amd_mixed_dot function
[ROCm/hip commit: 50a12f1ce1 ]
2019-01-29 06:01:01 +05:30
Aaron Enye Shi
ba1452b664
Fix mixed dot for Jenkins rocm_2_0
...
[ROCm/hip commit: ede494bd5f ]
2019-01-24 22:48:35 +00:00
Aaron Enye Shi
aabdf3a1b2
Exclude mixed dot functions from nvcc path
...
[ROCm/hip commit: 7e46f0639c ]
2019-01-24 21:00:45 +00:00
Aaron Enye Shi
2ae4e21bb9
Fix mixed dot for Jenkins rocm_head
...
[ROCm/hip commit: f31aa946e7 ]
2019-01-23 16:39:25 +00:00
Aaron Enye Shi
b1d61f076f
Add tests for dot functions
...
[ROCm/hip commit: 1d70f4217e ]
2019-01-22 22:32:28 +00:00
Yaxun Sam Liu
99e563d8a0
Fix get_time in tests for nvcc
...
[ROCm/hip commit: aa6abb0dcf ]
2019-01-21 14:07:50 -05:00
Yaxun Sam Liu
934b6929d0
Use chrono instead of sys/time.h in test
...
sys/time.h is not available on Windows. Use C++11 <chrono> instead so that the tests
compile on Windows.
[ROCm/hip commit: 05b5e30187 ]
2019-01-20 00:05:27 -05:00
Maneesh Gupta
cf7c7f2db2
Update hipAsynchronousStreams.cpp
...
This test needs to be excluded from nvcc platform
[ROCm/hip commit: 580c808400 ]
2019-01-07 09:26:21 +05:30
Sameer Sahasrabuddhe
d1a7eb0cb5
introduce test for asynchronous streams
...
This test is identical to the HCC tests under
tests/Unit/OCKL/AsyncStreams, but only for synchronous operation.
[ROCm/hip commit: 8fe2a4b167 ]
2019-01-04 05:51:50 -05:00
Maneesh Gupta
09a02a63a7
Merge pull request #818 from yxsamliu/fix-hip-config
...
Add default arguments for hipConfigureCall
[ROCm/hip commit: 4d0266a495 ]
2019-01-01 10:25:25 +05:30
Maneesh Gupta
23bc02a493
Merge pull request #821 from gargrahul/remove_redundancy_memset3d_test
...
[dtest] Remove redundant arguments from hipMemset3D test
[ROCm/hip commit: cb8e28144a ]
2018-12-31 15:32:19 +05:30
Rahul Garg
42a683e159
Remove redundant arguments from hipMemset3D test
...
[ROCm/hip commit: 4272119eeb ]
2018-12-20 06:51:22 +05:30
Yaxun Sam Liu
e9532108bb
Add default arguments for hipConfigureCall
...
[ROCm/hip commit: ec03a8b352 ]
2018-12-18 15:48:21 -05:00
Aaron Enye Shi
8e7b49d1cf
Add *_rn functions back into HIP intrinsics
...
Add back the round-to-nearest-even intrinsics back to HIP math
intrinsics as it caused regression.
[ROCm/hip commit: 58dfeff27a ]
2018-12-18 19:31:54 +00:00
Michael Kuron
c35dfb71d5
Merge branch 'master' into getsymboladdress
...
[ROCm/hip commit: 8610128c3e ]
2018-11-20 12:03:22 +01:00
Aaron Enye Shi
8bf2429663
Guard rcp rounded implementation as well
...
Since rcp implementations of non-default rounded versions are not correct or supported in OCML, guard them using the same macro OCML_BASIC_ROUNDED_OPERATIONS. Also update the docs and tests.
[ROCm/hip commit: 0cfaa52d15 ]
2018-11-06 19:53:28 +00:00
Aaron Enye Shi
eb4053e3fe
Guard the OCML rounded operations instead
...
Instead of commenting all these functions out, guard the functions with a macro OCML_BASIC_ROUNDED_OPERATIONS.
[ROCm/hip commit: e59c33250a ]
2018-11-06 16:32:14 +00:00
Michael Kuron
b23b30d373
Test for hipGetSymbolSize and hipGetSymbolAddress
...
[ROCm/hip commit: 49cc703d7a ]
2018-11-06 11:39:34 +01:00