ansurya
ba9c6e13e4
Added new Memory API's ( #1399 )
...
Added new memory API's hipMemAllocPitch, hipMemAllocHost, hipMemsetD16, hipMemsetD16Async, hipMemsetD8Async
Modified to support all scenarios hipMemcpyParam2DAsync, hipMemcpyParam2D.
2019-10-04 13:36:31 +05:30
Yaxun (Sam) Liu
56193a7828
Fix cast of __half for HIP-clang ( #1475 )
2019-09-30 10:40:42 +05:30
AlexBinXie
5ed1f3e2c8
[hip]Skip test when hipHostMallocCoherent is not supported by implementation ( #1380 )
2019-09-16 08:31:43 +00:00
Sameer Sahasrabuddhe
70023c9075
remove obsolete test for OCKL Asynchronous Streams
...
The implementation for OCKL AS was recently removed from the device
library since that feature is now superseded by hostcall.
2019-08-30 20:41:29 +05:30
amd-lthakur
d3ffad7c83
[dtests] Fixed build issues with hipAsynchronousStreams.cpp on windows ( #1292 )
...
Changed the third arg of the functions __hip_as_write_block and __ockl_as_write_block from ulong to uint64_t so as to fix the compilation error in windows
2019-08-09 11:49:31 +00:00
lthakur
d18160920e
Resubmitting the fix so as to address the changed format in the last submission
2019-08-08 11:26:26 +05:30
lthakur
435badcb0e
Fixed compilation errors being observed on windows
2019-08-07 15:54:46 +05:30
Vladislav Sytchenko
fd3b626386
Don't use a hardcoded warp size, since it can be dynamically changed. Query it from the runtime instead.
2019-07-31 17:04:31 -04:00
Aaron Enye Shi
b754de37c1
Add GFX908 specific changes to HIP ( #1229 )
...
* Add GFX908 specific for HIP
* Fix missing __halfTest in hipTestNativeHalf
2019-07-24 07:51:17 +00:00
Alex Voicu
67abac1365
Put 3-wide vector types on a ketogenic diet. ( #1180 )
...
* Put 3-wide vector types on a ketogenic diet.
* Remove needless include.
* Do not be narrow-minded.
* Do not be narrow-minded.
* Put the C people on a diet too.
2019-06-25 06:32:09 +05:30
Maneesh Gupta
9f2d1453fb
[hit] Rename RUN -> TEST & RUN_NAMED -> TEST_NAMED
...
Change-Id: I75e24f15129973cee15fc9dac65d678bd2172074
2019-05-09 09:59:18 +05:30
Maneesh Gupta
f931152280
Merge pull request #1075 from mhbliao/hliao/master/test_fix2
...
[test] Add device variant of `std::declval`.
2019-05-07 16:15:01 +05:30
Maneesh Gupta
1d4941e487
Merge pull request #1074 from mhbliao/hliao/master/test_fix
...
[test] Use explicit cast for address space cast.
2019-05-07 16:09:15 +05:30
Maneesh Gupta
730763c817
Merge pull request #1069 from mhbliao/hliao/master/test_cleanup
...
[test] Remove unused common routines.
2019-05-07 16:02:57 +05:30
Michael LIAO
4fbfb646f6
[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.
2019-05-03 15:58:31 -04:00
Michael LIAO
2746d95906
[test] Use explicit cast for address space cast.
2019-05-03 14:56:00 -04:00
Michael LIAO
16a27e06ee
[test] Remove unused common routines.
...
- Remove used common routines, which variadic functions, not supported
feature, are used.
2019-05-02 12:34:07 -04:00
Michael LIAO
9bd2d5746d
[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.
2019-04-30 08:59:13 -04:00
Aaron Enye Shi
ede494bd5f
Fix mixed dot for Jenkins rocm_2_0
2019-01-24 22:48:35 +00:00
Aaron Enye Shi
7e46f0639c
Exclude mixed dot functions from nvcc path
2019-01-24 21:00:45 +00:00
Aaron Enye Shi
f31aa946e7
Fix mixed dot for Jenkins rocm_head
2019-01-23 16:39:25 +00:00
Aaron Enye Shi
1d70f4217e
Add tests for dot functions
2019-01-22 22:32:28 +00:00
Maneesh Gupta
580c808400
Update hipAsynchronousStreams.cpp
...
This test needs to be excluded from nvcc platform
2019-01-07 09:26:21 +05:30
Sameer Sahasrabuddhe
8fe2a4b167
introduce test for asynchronous streams
...
This test is identical to the HCC tests under
tests/Unit/OCKL/AsyncStreams, but only for synchronous operation.
2019-01-04 05:51:50 -05:00
Aaron Enye Shi
58dfeff27a
Add *_rn functions back into HIP intrinsics
...
Add back the round-to-nearest-even intrinsics back to HIP math
intrinsics as it caused regression.
2018-12-18 19:31:54 +00:00
Michael Kuron
8610128c3e
Merge branch 'master' into getsymboladdress
2018-11-20 12:03:22 +01:00
Aaron Enye Shi
0cfaa52d15
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.
2018-11-06 19:53:28 +00:00
Aaron Enye Shi
e59c33250a
Guard the OCML rounded operations instead
...
Instead of commenting all these functions out, guard the functions with a macro OCML_BASIC_ROUNDED_OPERATIONS.
2018-11-06 16:32:14 +00:00
Michael Kuron
49cc703d7a
Test for hipGetSymbolSize and hipGetSymbolAddress
2018-11-06 11:39:34 +01:00
Aaron Enye Shi
2b108a2cfd
Remove non-working non-default-rounded math apis
...
In ROCm-Device-Libs, they have dropped the non-default-rounded versions of add, sub, mul, div, sqrt and fma. Therefore, ocml has removed the rte, rtp, rtn, and rtz counterparts. This will remove the same math APIs in HIP for _ru, _rd, _rn, and _rz.
2018-11-05 22:34:16 +00:00
Alex Voicu
fe959f7bd7
Re-sync with upstream.
2018-10-18 12:27:03 +01:00
Maneesh Gupta
52e320f396
Replace hipLaunchKernel -> hipLaunchKernelGGL
...
Change-Id: I4d99009e1199811d417becf1e1b934ec4d4e30be
2018-10-17 14:32:25 +05:30
Alex Voicu
5312336ce2
Minimal should mean minimal.
2018-10-11 00:21:41 +01:00
Alex Voicu
50265028fc
Trailing whitespace is still not the final frontier.
2018-10-11 00:08:09 +01:00
Alex Voicu
ca375cb8c5
Re-sync with upstream.
2018-10-10 11:43:49 +01:00
Maneesh Gupta
5c665acf74
Merge pull request #685 from ROCm-Developer-Tools/hip-trig-return
...
Improve hip_trig test case
2018-09-26 09:50:48 +05:30
Aaron Enye Shi
5179a72cda
Use trig functions from ocml instead
2018-09-25 15:58:36 +00:00
Aaron Enye Shi
3d3820272a
Fix missing HIP_ASSERT in hip_trig
2018-09-24 15:01:24 +00:00
Maneesh Gupta
ca6b916d15
Merge pull request #683 from ROCm-Developer-Tools/hip-float-rounded
...
Disable non-default-rounded functions
2018-09-24 09:32:52 +05:30
Aaron Enye Shi
357b6844fa
Improve hip_trig test case
...
Hip_trig is failing but returning a passing value on HIP-Clang. Also update with debug output and free arrays used.
2018-09-21 15:28:10 -04:00
Maneesh Gupta
255589ae15
Update hipTestFMA.cpp
2018-09-21 11:00:08 +05:30
Aaron Enye Shi
c11220f224
Disable non-default-rounded functions
...
Device library has removed the non-default-rounded functions, so hipFloatMath will fail to build. These include the removal of __ocml_sqrt_rte, __ocml_sqrt_rtn, __ocml_sqrt_rtp, and __ocml_sqrt_rtz. As seen here: https://github.com/RadeonOpenCompute/ROCm-Device-Libs/commit/2fc04e10e1354edee331ce700f98a60f8255effb . Disable these function tests for now, until they are re-enabled, or deleted completely.
2018-09-20 16:33:32 -04:00
Maneesh Gupta
ecd6a212c7
Update hipTestFMA.cpp
...
Fix the test so that it works on nvcc path as well.
2018-09-20 11:23:51 +05:30
Yaxun Sam Liu
bd622a4b4a
Add fma function with float and _Float16 arguments
2018-09-19 09:59:33 -04:00
Maneesh Gupta
cca2c5afc8
[dests] Fix hipTestClock, hipTestNew & hipTestGlobalVariable tests for nvcc
...
nvcc does not support global kernels in struct/class
Change-Id: I2d7297e0c3725564215e20dbdd31c0bb8d7a07de
2018-09-17 15:32:05 +05:30
Maneesh Gupta
94a0589eb5
[dtests] Fix deviceLib/hipSimpleAtomicsTest for nvcc
...
Change-Id: I23cbea2820d41da6f6a1bcab4bc3b59ac21799dd
2018-09-17 15:26:45 +05:30
Maneesh Gupta
0b211bb429
[dtests] Fix deviceLib/hipTestIncludeMath on nvcc path
...
Change-Id: Ifb121886bec6c1134e98bd194ff1713f28454d33
2018-09-17 15:15:49 +05:30
Alex Voicu
c6720e882b
Align with HC Next.
2018-09-17 11:50:29 +03:00
Maneesh Gupta
66f863d1f3
Merge branch 'master' into support-malloc
2018-09-17 10:17:25 +05:30
Yaxun (Sam) Liu
338eaefa84
Support placement new in hip-clang
2018-09-04 16:53:46 -04:00