Commit Graph

128 Commits

Author SHA1 Message Date
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
Yaxun Sam Liu 11c91c2fdd Fix ambiguity of __clz and __clzll 2018-08-31 18:07:57 -04:00
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
Aaron Enye Shi 5893bbc1f4 Add tests for bitextract and bitinsert 2018-08-28 20:01:54 +00: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
Brian Sumner 71f96388ed Drop use of NVCC_COMPAT since it is always set 2018-07-27 09:29:29 -07:00
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 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 12202dae90 Merge pull request #543 from ROCm-Developer-Tools/add-std-complex
Support std::complex for hip-clang
2018-07-19 07:14:45 +05:30
Yaxun Sam Liu 39374f4208 Fix test hipStdComplex.cpp to emit expected output for passing 2018-07-18 07:21:24 -04:00
Yaxun (Sam) Liu 80438035c2 Support std::complex for hip-clang 2018-07-18 00:08:04 -04:00
Alex Voicu 05ecc35825 And a few more oversights. 2018-07-17 19:33:13 +01:00
Alex Voicu 96aa6e22ee Constrain variadic constructor to ranks > 1 and add missing __device__s 2018-07-17 17:18:45 +01:00
Maneesh Gupta fb5199dee6 Merge branch 'master' into feature_native_vector_types
Change-Id: I943b94ee230871a960d8f9c321ad5e096183b415
2018-07-17 09:51:22 +05:30
Maneesh Gupta fbbe2599dd Merge pull request #515 from ROCm-Developer-Tools/hipclang-add-amdgcn-funcs
Add hipclang amdgcn functions
2018-07-17 09:25:09 +05:30
Alex Voicu fe289dbebe Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_native_vector_types 2018-07-15 11:44:48 +01:00
Aaron Enye Shi aa05779c64 Fix hip_mbcnt test typo
Ctest did not catch this test failure. When running this test manually before typo, I got __mbcnt_hi() FAILED! . This fix will fix this test for HCC and HIP clang path.
2018-07-06 11:26:48 -04:00
Aaron Enye Shi 76f86ef097 Implement hip_ldg Functions into HIP header
Move all the function definitions for hip_ldg.cpp into hip_ldg.h header and enable for HIP clang path.
2018-07-05 20:38:46 +00:00
Alex Voicu b3e6fcdf18 Add scalar operands and fix C implementation. 2018-06-29 05:23:49 +01:00
Alex Voicu 9d91b802a5 Let's try this again... 2018-06-25 17:49:50 +01:00
Alex Voicu 859133a045 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_native_vector_types 2018-06-22 12:19:32 +01:00
Maneesh Gupta 946c8da88a Merge pull request #490 from ROCm-Developer-Tools/feature_decouple_atomics_from_hc
Switch the atomic implementation to use Clang  builtins.
2018-06-20 14:16:43 +05:30
Alex Voicu 28a1aef8a1 Revert "Revert "Switch over to using native vector types, for better codegen. Remove noise.""
This reverts commit 7a4aace13d.
2018-06-16 22:59:36 +01:00
Siu Chi Chan 7a4aace13d Revert "Switch over to using native vector types, for better codegen. Remove noise." 2018-06-08 16:48:22 -04:00
Alex Voicu 089ab3b947 Switch the atomic implementation to use Clang builtins. 2018-06-02 12:27:17 +01:00
Alex Voicu 417869821d Re-sync with upstream. 2018-06-01 15:49:05 +01:00
Maneesh Gupta 68c36f9125 Merge pull request #447 from ROCm-Developer-Tools/feature_native_vector_types
Switch over to using native vector types, for better codegen. Remove noise.
2018-06-01 13:58:07 +05:30
Alex Voicu ab4b2a650b Re-sync with upstream. Add integer abs. 2018-05-31 16:38:00 +01:00
Alex Voicu 0108819e2a Add missing interop with volatile. Fix unit tests. 2018-05-31 15:27:12 +01:00
Alex Voicu 59db16fd36 Switch to using ROCDL directly, as opposed to via HC. Add missing bits. 2018-05-31 03:17:26 +01:00
Alex Voicu 0eec115bcd Move converting constructor from _Float16 under macro guard. Refactor. 2018-05-25 19:46:41 +01:00
Alex Voicu 9948b5961e Update hipTestHalf to actually test behaviour. Add missing hipHostfree. 2018-05-24 13:55:30 +01:00
Alex Voicu 6f819f226b Missing commit. 2018-05-23 17:57:47 +01:00
Maneesh Gupta 305592d622 Disable incomplete unit tests that don't work on nvcc path
Change-Id: If5823ec96a3b2497a08c46ab802c5a0158271053
2018-05-21 11:35:03 +05:30
Maneesh Gupta 67d45164fa Merge pull request #444 from aaronenyeshi/vg20-initial
initial gfx906 support
2018-05-18 13:18:07 +05:30
Alex Voicu b8c98d2357 Switch over to using native vector types, for better codegen. Remove noise. 2018-05-12 00:14:17 +01:00
Aaron Enye Shi 848a24b524 Fix hipMathFunction for gfx906 2018-05-11 10:53:07 -04:00
Siu Chi Chan b898049412 initial gfx906 support 2018-05-10 19:28:00 +00:00
Siu Chi Chan b285145966 add intrinsics mbcnt_lo, mbcnt_hi, lane_id 2018-05-08 13:43:53 -04:00
Deven Desai 76a7d7e374 Fixing a copy/paste error in my previous checkin 2018-04-27 12:59:51 +00:00
Deven Desai 4be4cf644f Checkin to add unit tests for fixes in my previous commit
This change adds unit tests for

1. __hisinf
2. __hisnan
2. abs(long long)
3. lgamma(double)
2018-04-25 17:53:21 +00:00
Maneesh Gupta 1ba06f63c4 Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
2018-03-12 11:29:03 +05:30
Phaneendr-kumar Lanka bd60ef9031 [nvccWarnings] Fix -Wno-deprecated-declarations in hip_anyall and hip_ballot 2017-12-20 12:05:21 +05:30
Phaneendr-kumar Lanka eea7d495c7 [nvccWarnings] Fix warnings seen with dtests on nvcc path 2017-12-14 14:10:37 +05:30
Ben Sander 62cbe22d50 Temporarily disable a couple tests pending some HCC work 2017-12-01 21:46:28 +00:00