Commit Graph

1174 Commits

Author SHA1 Message Date
Aaron Enye Shi 1e6f00bf67 Add hipclang amdgcn functions
These are moving from hipclang in device library to hip headers. These are required for the functionality of HIPclang project.


[ROCm/clr commit: f4399d57a3]
2018-06-20 17:38:37 +00:00
Maneesh Gupta 8e2a1e0acd Merge pull request #507 from ROCm-Developer-Tools/fix-forward
Add __device__ to device functions in hip_fp16_math_fwd.h

[ROCm/clr commit: 272c16d34e]
2018-06-20 14:21:46 +05:30
Maneesh Gupta f1571c9750 Merge pull request #504 from ROCm-Developer-Tools/fix-vector3
Fix channel_descriptor.h about vector 3 for gcc

[ROCm/clr commit: 29aa297899]
2018-06-20 14:20:29 +05:30
Maneesh Gupta bdc67ac1b4 Merge pull request #490 from ROCm-Developer-Tools/feature_decouple_atomics_from_hc
Switch the atomic implementation to use Clang  builtins.

[ROCm/clr commit: d27991e1c8]
2018-06-20 14:16:43 +05:30
Maneesh Gupta 721a3f60be Merge pull request #457 from whchung/hip-reinit
HIP program state re-initialization logic

[ROCm/clr commit: 8ff33a83b1]
2018-06-20 09:37:27 +05:30
Yaxun (Sam) Liu b93308449e Add conj, operator-,==,!= for hipFloatComplex/hipDoubleComplex
[ROCm/clr commit: 2b5242b2c3]
2018-06-19 10:49:59 -04:00
Yaxun (Sam) Liu 1709777f1b Add abs/real/imag functions for hipFloatComplex/hipDoubleComplex
[ROCm/clr commit: 0de3ef7b32]
2018-06-18 11:57:57 -04:00
Yaxun (Sam) Liu 37fe9e0346 Add missing __device__ __host__ to complex constructor
Also add missing typedef value_type


[ROCm/clr commit: 40d2d8a0bd]
2018-06-17 20:20:32 -04:00
Yaxun (Sam) Liu 2dfbd89f5c Includes <cmath> or <math.h> by __cplusplus in hip_complex.h
[ROCm/clr commit: 5d0d2ea455]
2018-06-17 20:20:32 -04:00
Yaxun (Sam) Liu 92959fa686 Include cmath instead of math.h in hip_complex.h
[ROCm/clr commit: cc44a3d234]
2018-06-17 20:20:32 -04:00
Yaxun (Sam) Liu 0163a94106 Add missing macro MAKE_COMPONENT_CONSTRUCTOR_TWO_COMPONENT to hip_complex.h
[ROCm/clr commit: 8ddadf835d]
2018-06-17 20:20:32 -04:00
Alex Voicu 58edb652ca Revert "Revert "Switch over to using native vector types, for better codegen. Remove noise.""
This reverts commit c1cd1513aa.


[ROCm/clr commit: fa370fcf19]
2018-06-16 22:59:36 +01:00
Nico Trost 3eb353ec44 added missing hipCmul() to nvcc_detail/hip_complex.h
[ROCm/clr commit: 6815c7bdd7]
2018-06-14 21:49:54 +02:00
Wen-Heng (Jack) Chung 865fe01b37 HIP program state re-initialization logic
This commit is to support kernels dynamically loaded thru means such as
dlopen() after HIP runtime initializes.


[ROCm/clr commit: 04640992dc]
2018-06-14 15:46:49 +00:00
Maneesh Gupta ad3c3314bc Merge pull request #506 from ROCm-Developer-Tools/fix-extern-shared
Add support of extern __shared__ for hip-clang

[ROCm/clr commit: 181cde1899]
2018-06-11 11:59:58 +05:30
Siu Chi Chan c1cd1513aa Revert "Switch over to using native vector types, for better codegen. Remove noise."
[ROCm/clr commit: d137271083]
2018-06-08 16:48:22 -04:00
Yaxun (Sam) Liu 7f5b121990 Add __device__ to device functions in hip_fp16_math_fwd.h
[ROCm/clr commit: 9566616dd2]
2018-06-08 11:23:52 -04:00
Yaxun (Sam) Liu 3536fbeb2b Add more function declarations for hip-clang
[ROCm/clr commit: 93fbbfc8ad]
2018-06-08 11:20:42 -04:00
Yaxun (Sam) Liu e25084dd6d Fix channel_descriptor.h about vector 3 for gcc
[ROCm/clr commit: 6215587197]
2018-06-08 11:18:41 -04:00
Yaxun (Sam) Liu ef8c4b51ae Add support of extern __shared__ for hip-clang
[ROCm/clr commit: 9398c9c927]
2018-06-08 11:17:25 -04:00
Maneesh Gupta 236413158d Merge pull request #482 from ROCm-Developer-Tools/feature_clean_up_hip_math
Switch to using ROCDL directly, as opposed to via HC. Add missing bits.

[ROCm/clr commit: cb642f14ab]
2018-06-06 16:07:22 +05:30
Maneesh Gupta 95907c967d Merge pull request #496 from gargrahul/add_gettexresdesc_nvcc
Add getTextureResourceDescriptor on NVCC

[ROCm/clr commit: a1ad2b9c65]
2018-06-06 15:12:11 +05:30
Maneesh Gupta c4b344dab4 Merge pull request #487 from gargrahul/fix_hiparray_alloc_flag_nvcc
Map hipArray alloc flags on NVCC

[ROCm/clr commit: a432847b1b]
2018-06-06 15:11:40 +05:30
Rahul Garg 8a88d182f5 Add getTextureResourceDescriptor on NVCC
[ROCm/clr commit: 6f8bcf53b0]
2018-06-05 18:46:25 +05:30
Alex Voicu d45814f84d Fix hideous typos.
[ROCm/clr commit: 92c106bcf5]
2018-06-03 03:03:55 +01:00
Alex Voicu 6acd8d4cf2 Add missing __device__ for forward declares.
[ROCm/clr commit: 13a1917741]
2018-06-02 17:46:37 +01:00
Alex Voicu 43a5f04e9c Switch the atomic implementation to use Clang builtins.
[ROCm/clr commit: 513ba4eb8a]
2018-06-02 12:27:17 +01:00
Rahul Garg 065f0d8d8c Add integrated device property
[ROCm/clr commit: 94f086e9cd]
2018-06-02 13:11:16 +05:30
Alex Voicu 8d86f5c7aa Rename for minimal confusion.
[ROCm/clr commit: 3a17e2ad06]
2018-06-01 22:55:33 +01:00
Alex Voicu 301a7a199b Missing __device__.
[ROCm/clr commit: b72d82f982]
2018-06-01 19:48:36 +01:00
Alex Voicu 4306856ec9 Fix typos / address review comments.
[ROCm/clr commit: 91d9ec75d7]
2018-06-01 16:20:21 +01:00
Alex Voicu 130e9d409e Re-sync with upstream.
[ROCm/clr commit: f2d7f112ab]
2018-06-01 15:49:05 +01:00
Rahul Garg 11e33a1203 Map hipArray alloc flags on NVCC
[ROCm/clr commit: b1b9a477a2]
2018-06-01 17:28:43 +05:30
Maneesh Gupta 2a9a7b9aa3 Merge pull request #447 from ROCm-Developer-Tools/feature_native_vector_types
Switch over to using native vector types, for better codegen. Remove noise.

[ROCm/clr commit: 3fec282097]
2018-06-01 13:58:07 +05:30
Maneesh Gupta 125f6201c8 Merge pull request #466 from ROCm-Developer-Tools/feature_use_Float16
Feature use _Float16 and match CUDA __half behaviour.

[ROCm/clr commit: 8ecb3eeb55]
2018-06-01 13:50:12 +05:30
Alex Voicu a9cabfc8df Re-sync with upstream. Add integer abs.
[ROCm/clr commit: e03ca1a72e]
2018-05-31 16:38:00 +01:00
Alex Voicu 37c73225e3 Merge branch 'feature_use_Float16' of https://github.com/ROCm-Developer-Tools/HIP into feature_use_Float16
[ROCm/clr commit: e20380319a]
2018-05-31 15:27:31 +01:00
Alex Voicu 840d5c5fe0 Add missing interop with volatile. Fix unit tests.
[ROCm/clr commit: 208f5a41c6]
2018-05-31 15:27:12 +01:00
Alex Voicu 2924783ee4 Switch to using ROCDL directly, as opposed to via HC. Add missing bits.
[ROCm/clr commit: 14e6a04387]
2018-05-31 03:17:26 +01:00
Yaxun (Sam) Liu bd44b8c22a Fix __syncthreads for hip-clang
[ROCm/clr commit: 0e0b028846]
2018-05-30 16:33:18 -04:00
Yaxun (Sam) Liu 999df03229 Add more function declarations for hip-clang
[ROCm/clr commit: 27fe2283d6]
2018-05-30 06:51:03 -04:00
Maneesh Gupta 92757a7033 Merge pull request #469 from yxsamliu/fun
Add math function declaration for hip-clang

[ROCm/clr commit: e5b8358b05]
2018-05-30 15:01:27 +05:30
Maneesh Gupta b04a576c12 Add signature for hipFuncGetAttributes to nvcc_details
Change-Id: I06d5b50028fcfe3ea9d81f749b02be6b094c0977


[ROCm/clr commit: a923cac5d5]
2018-05-30 11:24:48 +05:30
Rahul Garg a4aa29f24b Fix hipBindTexture on NVCC path
[ROCm/clr commit: d74353b112]
2018-05-30 10:59:07 +05:30
Maneesh Gupta c510903a32 Merge pull request #471 from Jorghi12/patch-4
Adding double/long int signatures for abs

[ROCm/clr commit: fde0613554]
2018-05-30 08:31:32 +05:30
Alex Voicu 377b028628 GCC only supports power-of-2 component counts, so round up to next square.
[ROCm/clr commit: c059619e2c]
2018-05-29 01:22:26 +01:00
Rahul Garg f40b06757c Add 1d texture types for NVCC path
[ROCm/clr commit: 3699e74857]
2018-05-28 15:02:06 +05:30
Jorghi12 8a2d7a25b1 Update math_functions.h
CUDA also has a function named labs.

[ROCm/clr commit: b33876ee4d]
2018-05-26 16:22:10 -04:00
Alex Voicu 0a2d514cf8 Add missing alias half / half2 aliases
[ROCm/clr commit: 0f4a135e5f]
2018-05-26 12:10:50 +01:00
Jorghi12 43d55a79e4 Adding double/long int signatures for abs
Adding overloads for abs that are found in cuda's math_functions.

[ROCm/clr commit: b127488ea9]
2018-05-26 00:41:24 -04:00