Graf commitů

109 Commity

Autor SHA1 Zpráva Datum
Maneesh Gupta 11cccaa5d0 Merge pull request #613 from ROCm-Developer-Tools/hcc-compat
Add HCC compatibility mode for hip-clang
2018-08-10 09:32:31 +05:30
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 d0cdc69676 Merge pull request #610 from aaronenyeshi/enable-hcc-module-launch
Enable hipHccModuleLaunchKernel on HIP-Clang
2018-08-02 08:08:46 +05:30
Yaxun Sam Liu ef1d1d57f7 Add hc_get_workitem_absolute_id for hip-clang HCC compatibility mode 2018-08-01 15:14:38 -04:00
Yaxun Sam Liu 43bb490947 Add HCC compatibility mode 2018-08-01 15:14:38 -04:00
Aaron Enye Shi d1149a9b64 Enable hipHccModuleLaunchKernel on HIP-Clang 2018-07-31 20:38:20 +00:00
Brian Sumner 71f96388ed Drop use of NVCC_COMPAT since it is always set 2018-07-27 09:29:29 -07:00
Aaron Enye Shi 8c50bcfdab Enable HIP texture functions with HIP vector types
Include texture_functions.h on HIP-Clang path. Use HIP vector types instead of hc::short_vectors for texture_functions, and remove HCC headers.
2018-07-25 19:52:19 +00:00
Aaron Enye Shi ffefae77d7 [HIPClang] Switch ordering on math functions
Header math_functions.h should be included after including __clang_cuda_math_forward_declares.h to avoid warning: attribute declaration must precede definition.
2018-07-20 13:25:04 -04:00
Yaxun (Sam) Liu 80438035c2 Support std::complex for hip-clang 2018-07-18 00:08:04 -04:00
Maneesh Gupta b5cfa773ef Merge branch 'master' into move-memcpy 2018-07-17 10:51:42 +05:30
Yaxun (Sam) Liu 8136a348ab Move __hip_hc_memcpy and __hip_hc_memset from device_utils.cpp to device_functions.h as inline functions 2018-07-10 18:12:41 -04:00
Aaron Enye Shi 4a7ad93655 Fix min/max, icmp asm and add comment for conversion functions 2018-07-10 18:56:48 +00:00
Aaron Enye Shi 22b60afa0d Enable surface functions on HIP clang path
Fix surface test on HIP clang path.
2018-07-05 20:49:47 +00:00
Aaron Enye Shi 47d78e372e Implement min/max functions in HIP header
Remove using hc::precise_math min and max. Instead we can use ocml directly for device and std:: for host.
2018-07-05 20:15:41 +00:00
Aaron Enye Shi 930a16bccd Implement Memory Fence Functions in header
Enabled __llvm_fence_* functions for seq_cst.
2018-07-04 23:35:24 +00:00
Aaron Enye Shi 2975f2a10a Merge branch 'master' into hipclang-add-amdgcn-funcs 2018-07-04 17:36:08 +00:00
Maneesh Gupta 76b2d0f82d Merge pull request #495 from ROCm-Developer-Tools/hip-clang-upstream
add more device functions for hip-clang
2018-06-28 11:42:01 +05:30
Maneesh Gupta dde875f23b Fix typo 2018-06-28 11:19:22 +05:30
Aaron Enye Shi 9ac31e0bb6 Implement __shfl_* funcs into HIP headers 2018-06-26 18:32:11 +00:00
Aaron Enye Shi fe4e6c53fc Move hipclang funcs into corresponding headers 2018-06-20 17:39:15 +00:00
Aaron Enye Shi cfe37484c9 Split __llvm and device lib funcs into new headers 2018-06-20 17:39:06 +00:00
Aaron Enye Shi 27f600b425 Add get_dynamicgroupbaseptr def and remove hc_ 2018-06-20 17:38:59 +00:00
Aaron Enye Shi 871cfc6fd2 Add prefix __ to memory scope and order 2018-06-20 17:38:52 +00:00
Aaron Enye Shi cfa8fc1ca5 Add __llvm_fence funcs and __ prefixes 2018-06-20 17:38:45 +00:00
Aaron Enye Shi c453b42bff Add hipclang amdgcn functions
These are moving from hipclang in device library to hip headers. These are required for the functionality of HIPclang project.
2018-06-20 17:38:37 +00: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
Yaxun (Sam) Liu d726ba1d9a Add more function declarations for hip-clang 2018-06-08 11:20:42 -04:00
Yaxun (Sam) Liu cc14ed0981 Add support of extern __shared__ for hip-clang 2018-06-08 11:17:25 -04:00
Alex Voicu 089ab3b947 Switch the atomic implementation to use Clang builtins. 2018-06-02 12:27:17 +01:00
Yaxun (Sam) Liu b7641cf835 Fix __syncthreads for hip-clang 2018-05-30 16:33:18 -04:00
Yaxun (Sam) Liu 6b8218e5a0 Add more function declarations for hip-clang 2018-05-30 06:51:03 -04:00
Yaxun (Sam) Liu b7801f1fe3 Add more function declarations to hip-clang 2018-05-25 16:18:46 -04:00
Yaxun (Sam) Liu f9693a9210 Add math function declaration for hip-clang 2018-05-25 12:22:16 -04:00
Yaxun (Sam) Liu 19f3ed6f62 Fix warning about inlined function is not defined 2018-05-08 16:38:50 -04:00
Yaxun (Sam) Liu 7672b44c79 Add __assert_fail, __device_trap and hipErrorAssert for clang 2018-05-08 15:42:27 -04:00
Laurent Morichetti bc6fa2bc62 Don't include __clang_cuda_builtin_vars.h 2018-04-05 16:27:05 -07:00
Laurent Morichetti 0c1893ea62 Add support for clang offload bundles and <<<>>> kernel launch. 2018-04-04 13:32:33 -07:00
Laurent Morichetti a5e04c9706 Merge remote-tracking branch 'upstream/master' 2018-03-21 11:17:52 -07:00
Laurent Morichetti a06b21c500 Add HIP_KERNEL_NAME/HIP_SYMBOL definitions for HIP-clang, and rename hipLaunch->hipLaunchByPtr. 2018-03-21 11:07:21 -07:00
Maneesh Gupta 1ba06f63c4 Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
2018-03-12 11:29:03 +05:30
Maneesh Gupta 18e70b1e6b Merge pull request #363 from gargrahul/surface_object_api
Added surface object support
2018-03-09 11:50:30 +05:30
Laurent Morichetti 6536164914 Use __HIP__ instead of __HIPCC__, and __CUDA__ instead of __CUDACC__ 2018-02-28 14:20:55 -08:00
Laurent Morichetti 2bc7adfa62 Fixes a build error with hcc 2018-02-28 14:12:09 -08:00
Laurent Morichetti f8b0c96462 Add initial support for clang 2018-02-28 12:31:26 -08:00
Rahul Garg 5c3b91a0a1 Added surface object support 2018-02-26 11:59:03 +05:30
Alex Voicu cffd0e14eb 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. 2017-11-19 01:54:12 +00:00
Alex Voicu d8e323d4b5 Clean up trailing whitespace so as to reduce noise in #246. 2017-11-08 00:08:55 +00:00
Ben Sander 2e8ec71e40 Merge pull request #222 from bensander/fix_device_prop
Fix device prop
2017-10-30 17:58:48 +01:00
Siu Chi Chan f8bdb9f688 add a printf device function 2017-10-23 18:30:08 -04:00