Alex Voicu
ca375cb8c5
Re-sync with upstream.
2018-10-10 11:43:49 +01:00
Yaxun Sam Liu
cf184460e9
Fix build failure of hipTestHalf and hipTestIncludeMath for hip-clang
2018-09-18 21:00:15 -04:00
Yaxun Sam Liu
fc228c7ea6
Fix hipLaunchKernelGGL for hip-clang
...
Do not decay function pointer type of the kernel argument passed to hipLaunchKernelGGL
and hipLaunchKernel, otherwise some type information is lost which may cause
type inference failure for the template.
This issue caused compilation error of FeatureLPPooling in Caffe2/PyTorch and this patch
fixes that.
2018-09-17 11:20:41 -04:00
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
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
8fe4e22b19
Merge pull request #665 from aaronenyeshi/fix-min-funcs
...
Use templates for min to prevent ambiguity
2018-09-14 13:21:38 +05:30
Maneesh Gupta
411e53a665
Merge pull request #661 from yxsamliu/add-empty-printf
...
Add empty printf for hip-clang
2018-09-13 07:54:03 +05:30
Aaron Enye Shi
0121ec13aa
Use templates for min to prevent ambiguity
2018-09-11 18:21:54 +00:00
Yaxun Sam Liu
9e9a93e10a
Use template for hipLaunchKernelGGL for hip-clang
2018-09-07 16:20:00 -04:00
Yaxun Sam Liu
3e1833ca52
Add empty printf for hip-clang
2018-09-07 16:15:08 -04:00
Yaxun (Sam) Liu
338eaefa84
Support placement new in hip-clang
2018-09-04 16:53:46 -04:00
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
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
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