Aaron Enye Shi
ba43d1ce1b
Remove libhip_device.a static library
...
Move remaining function definitions from device_util.cpp to hip_runtime.h header. We can now remove the static library completely as device_util.cpp was the last file part of target hip::hip_device .
2018-10-25 19:52:35 +00:00
Alex Voicu
217fe345ca
Minimal should mean minimal.
2018-10-11 00:21:41 +01:00
Alex Voicu
9ec697c620
Re-sync with upstream.
2018-10-10 11:43:49 +01:00
Yaxun Sam Liu
781f0d97b5
Fix build failure of hipTestHalf and hipTestIncludeMath for hip-clang
2018-09-18 21:00:15 -04:00
Yaxun Sam Liu
0471ce2da6
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
26c26f63cb
Align with HC Next.
2018-09-17 11:50:29 +03:00
Maneesh Gupta
b23609ad42
Merge branch 'master' into support-malloc
2018-09-17 10:17:25 +05:30
Maneesh Gupta
9f553c0b40
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
17d12bbfef
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
2081cc9bd4
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
5f0838300e
Use templates for min to prevent ambiguity
2018-09-11 18:21:54 +00:00
Yaxun Sam Liu
6f2201475d
Use template for hipLaunchKernelGGL for hip-clang
2018-09-07 16:20:00 -04:00
Yaxun Sam Liu
be4a8f6859
Add empty printf for hip-clang
2018-09-07 16:15:08 -04:00
Yaxun (Sam) Liu
cc0fbc0e2e
Support placement new in hip-clang
2018-09-04 16:53:46 -04:00
Maneesh Gupta
a5f9ae90d2
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
b485957858
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
0354367a07
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
9c28758fa0
Add hc_get_workitem_absolute_id for hip-clang HCC compatibility mode
2018-08-01 15:14:38 -04:00
Yaxun Sam Liu
b91691966f
Add HCC compatibility mode
2018-08-01 15:14:38 -04:00
Aaron Enye Shi
0ad36dfa58
Enable hipHccModuleLaunchKernel on HIP-Clang
2018-07-31 20:38:20 +00:00
Yaxun Sam Liu
d17dc21c9c
Support malloc/free for hip-clang
2018-07-27 16:24:51 -04:00
Brian Sumner
8d80abb30f
Drop use of NVCC_COMPAT since it is always set
2018-07-27 09:29:29 -07:00
Aaron Enye Shi
bf6fdca1e8
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
98fca64220
[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
a8dc1257df
Support std::complex for hip-clang
2018-07-18 00:08:04 -04:00
Maneesh Gupta
1fc3ef3cd4
Merge branch 'master' into move-memcpy
2018-07-17 10:51:42 +05:30
Yaxun (Sam) Liu
903dfa94eb
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
9f3404cfea
Fix min/max, icmp asm and add comment for conversion functions
2018-07-10 18:56:48 +00:00
Aaron Enye Shi
5862ae4b6a
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
b362c53475
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
96ab7c7b25
Implement Memory Fence Functions in header
...
Enabled __llvm_fence_* functions for seq_cst.
2018-07-04 23:35:24 +00:00
Aaron Enye Shi
f8109c5b06
Merge branch 'master' into hipclang-add-amdgcn-funcs
2018-07-04 17:36:08 +00:00
Maneesh Gupta
b6f5c61a2c
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
f426491f17
Fix typo
2018-06-28 11:19:22 +05:30
Aaron Enye Shi
e44eaa1a1e
Implement __shfl_* funcs into HIP headers
2018-06-26 18:32:11 +00:00
Aaron Enye Shi
e8a18a5473
Move hipclang funcs into corresponding headers
2018-06-20 17:39:15 +00:00
Aaron Enye Shi
366207f8af
Split __llvm and device lib funcs into new headers
2018-06-20 17:39:06 +00:00
Aaron Enye Shi
0694d0300a
Add get_dynamicgroupbaseptr def and remove hc_
2018-06-20 17:38:59 +00:00
Aaron Enye Shi
7cade79d98
Add prefix __ to memory scope and order
2018-06-20 17:38:52 +00:00
Aaron Enye Shi
4298ed308e
Add __llvm_fence funcs and __ prefixes
2018-06-20 17:38:45 +00:00
Aaron Enye Shi
f4399d57a3
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
d27991e1c8
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
93fbbfc8ad
Add more function declarations for hip-clang
2018-06-08 11:20:42 -04:00
Yaxun (Sam) Liu
9398c9c927
Add support of extern __shared__ for hip-clang
2018-06-08 11:17:25 -04:00
Alex Voicu
513ba4eb8a
Switch the atomic implementation to use Clang builtins.
2018-06-02 12:27:17 +01:00
Yaxun (Sam) Liu
0e0b028846
Fix __syncthreads for hip-clang
2018-05-30 16:33:18 -04:00
Yaxun (Sam) Liu
27fe2283d6
Add more function declarations for hip-clang
2018-05-30 06:51:03 -04:00
Yaxun (Sam) Liu
9c43970a27
Add more function declarations to hip-clang
2018-05-25 16:18:46 -04:00
Yaxun (Sam) Liu
f53e86e1b8
Add math function declaration for hip-clang
2018-05-25 12:22:16 -04:00
Yaxun (Sam) Liu
4c2d2b9e69
Fix warning about inlined function is not defined
2018-05-08 16:38:50 -04:00