Commit Graph

609 Commits

Author SHA1 Message Date
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
Rahul Garg 8da3a96f2b Fixed get alignment offset test for NVCC
- Removed dtest hipGetAlgntoffset2D.cpp
- hipGetTextureAlignmentOffset is being tested now in hipBindTexRef1DFetch.cpp
2018-09-18 14:10:03 +05:30
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
Maneesh Gupta 30b1494c3d Merge pull request #606 from ROCm-Developer-Tools/add-test-global-var
Add HIP directed test hipTestGlobalVariable.cpp
2018-09-17 11:11:51 +05:30
Maneesh Gupta 66f863d1f3 Merge branch 'master' into support-malloc 2018-09-17 10:17:25 +05:30
Maneesh Gupta 48cc4f0d9e Merge pull request #639 from ROCm-Developer-Tools/skudchad-hip
Check for hipEnvVar at the same level if directed_tests location fails
2018-09-16 18:31:37 +05:30
Maneesh Gupta 9b2107749c Revert changes to runtime/stream/hipStreamSync2 2018-09-15 13:23:38 +05:30
Maneesh Gupta cb348421d7 Merge pull request #650 from ROCm-Developer-Tools/hip-clang-new
Support placement new in hip-clang
2018-09-15 11:21:01 +05:30
Maneesh Gupta 87bf9aa9d1 Merge pull request #658 from phani544/hipClangFrndClass
[HIP-Clang]Add friend class/function test
2018-09-14 08:59:40 +05:30
fpadmin a8bc26344f [HIP-Clang]Add friend class/function test 2018-09-05 11:48:49 +05:30
Yaxun (Sam) Liu 338eaefa84 Support placement new in hip-clang 2018-09-04 16:53:46 -04:00
Maneesh Gupta a3a93a68d4 Merge pull request #657 from yxsamliu/fix-clz
Fix ambiguity of __clz and __clzll
2018-09-03 16:34:42 +05:30
Maneesh Gupta 7459defec1 Merge pull request #651 from yxsamliu/hip-clang-clock
Add clock() and clock64()
2018-09-03 16:32:30 +05:30
Maneesh Gupta 943c4d874c Merge pull request #640 from aaronenyeshi/hip-clang-add-bit-funcs
Add bitextract and bitinsert functions
2018-09-03 16:31:42 +05:30
Yaxun Sam Liu 11c91c2fdd Fix ambiguity of __clz and __clzll 2018-08-31 18:07:57 -04:00
Saleel Kudchadker 1daee67eb6 Fix record_event and hipStreamSync2 tests. The test should expect null stream to complete if synchrionize is called as per the spec 2018-08-31 12:54:23 -07:00
Saleel Kudchadker cd926a44b7 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into skudchad-hip 2018-08-31 10:38:41 -07:00
Maneesh Gupta 5ab1d757e4 Merge pull request #564 from phani544/hipClangClass8B
Adding class size>8bytes tests
2018-08-30 10:33:47 +05:30
Aaron Enye Shi bbcb3fa0c0 Remove testing bitinsert/extract on nvcc path 2018-08-29 15:29:53 +00:00
Yaxun Sam Liu 1f74a66bea Add clock() and clock64() 2018-08-29 10:51:00 -04:00
fpadmin 0022f53a10 Adding class size>8bytes tests 2018-08-29 15:16:43 +05:30
Aaron Enye Shi 5893bbc1f4 Add tests for bitextract and bitinsert 2018-08-28 20:01:54 +00:00
Saleel Kudchadker 8e0e373f69 Check for hipEnvVar at the same level if directed_tests location fails 2018-08-17 12:14:42 -07:00
Yaxun Sam Liu a6c7aeed72 Add HIP directed test hipTestGlobalVariable.cpp 2018-08-10 08:15:36 -04:00
Yaxun Sam Liu b8a0c14171 Fix __HIP_ARCH_* not defined after including math_functions.h
hcc_detail/math_functions.h used to include hcc_detail/hip_runtime.h.

Removing it has caused regression in TensorFlow 1.8.

Put it back for backward compatibiliity.
2018-08-08 08:55:28 -04:00
Yaxun Sam Liu 450ea49df0 Fix __HIP_DEVICE_COMPILE__ not defined when hip/math_functions.h is included
This fixes build failure in TensorFlow 1.8 for HCC
2018-08-07 17:14:39 -04:00
Yaxun Sam Liu dacb18414e Fix declaration conflict when hip/math_functions.h is included first
This fixes build failure in TensorFlow 1.8 for HCC
2018-08-07 15:44:59 -04:00
Maneesh Gupta 78ca12d583 Merge pull request #603 from b-sumner/master
Drop use of NVCC_COMPAT since it is always set
2018-08-03 08:45:18 +05:30
Maneesh Gupta 58b7c9c5c8 Merge pull request #514 from luckynikki/GETandALGN
[GETandALGN]: Get channel and alignment details
2018-08-02 07:57:50 +05:30
lthakur 26f944b1c1 Added offset value verification.
Added offset value verification.
2018-08-01 10:41:30 +05:30
Yaxun Sam Liu f06894e2f0 Do not use std::complex in test hipDeviceMalloc 2018-07-27 17:07:00 -04:00
Yaxun Sam Liu 03320890de Fix thread index calculation in __hip_malloc 2018-07-27 16:24:51 -04:00
Yaxun Sam Liu 02d0e93601 Support malloc/free for hip-clang 2018-07-27 16:24:51 -04:00
Brian Sumner 71f96388ed Drop use of NVCC_COMPAT since it is always set 2018-07-27 09:29:29 -07:00
Maneesh Gupta 1a09b9d4d4 Merge pull request #596 from mangupta/patch5-fixhiplaunchparm
[tests] Fixed hipLaunchParm test on nvcc path
2018-07-26 06:17:50 +05:30
Maneesh Gupta 90a192661c Merge pull request #595 from mangupta/patch4-fixhipStdComplex
[tests] Fixed build & disabled run of hipStdComplex on nvcc path
2018-07-26 06:17:04 +05:30
Maneesh Gupta 4c41d62435 [tests] Fixed hipLaunchParm test on nvcc path
- Uses c++11 features. Added it to nvcc options
- Arguments for some kernels exceeded 4096 bytes which is the limit
  imposed by nvcc. Reduced BLOCK_DIM_SIZE to 512 to handle this
- Fixed compilation issues on nvcc path

Change-Id: I14f6b28afcb7c6b24a085fd707b2104e2ed64627
2018-07-25 15:41:04 +05:30
Maneesh Gupta 9d8dd3a4e6 [tests] Fixed build & disabled run of hipStdComplex on nvcc path
Change-Id: I885e96902faa065f6559183f33b6a7aa1f37e393
2018-07-25 15:39:45 +05:30
Aaron Enye Shi 2b73bccbef Fix return EXIT_FAILURE if ballot or anyall fails 2018-07-24 20:39:48 +00:00
Maneesh Gupta b1ca77147b Merge pull request #568 from Srinivasuluch/sprint2_9tests
Adding a few more struct scenarions and a ResultValidation()
2018-07-23 14:44:06 +05:30