Commit Graph

680 Commits

Author SHA1 Message Date
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
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
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
Yaxun (Sam) Liu c7d481a812 Add more function declarations to hip-clang
[ROCm/clr commit: 9c43970a27]
2018-05-25 16:18:46 -04:00
Yaxun (Sam) Liu 494f7f6a38 Add math function declaration for hip-clang
[ROCm/clr commit: f53e86e1b8]
2018-05-25 12:22:16 -04:00
Maneesh Gupta e72516bd2f Merge pull request #445 from ROCm-Developer-Tools/feature_func_attributes
Add support for the hipFuncGetAttributes interface.

[ROCm/clr commit: 85342d73b5]
2018-05-22 09:37:41 +05:30
Maneesh Gupta 96e4122845 Add hipMalloc3D to nvcc detail
Change-Id: I8a5654066ed1504e3b05eddbbdebf05fd52aa149


[ROCm/clr commit: 5133299804]
2018-05-21 11:33:09 +05:30
founta cc87c11be1 defined hipPitchedPtr
Added a define for hipPitchedPtr to resolve a compiler error

[ROCm/clr commit: 5c5d87b0a3]
2018-05-18 09:11:50 -04:00
Maneesh Gupta 106f3f591e Merge pull request #433 from gargrahul/add_hipmemset3d
Added hipMemset3D

[ROCm/clr commit: 1c93e11cdf]
2018-05-18 14:54:15 +05:30
Maneesh Gupta e3823fd9e8 Merge pull request #440 from yxsamliu/assert2
Add __assert_fail, __device_trap and hipErrorAssert for clang

[ROCm/clr commit: 43f7705278]
2018-05-18 14:13:27 +05:30
Alex Voicu 4e6996282d Add support for the hipFuncGetAttributes interface.
[ROCm/clr commit: bf9529aaa8]
2018-05-11 03:35:10 +01:00
Yaxun (Sam) Liu 7d7125195c Fix warning about inlined function is not defined
[ROCm/clr commit: 4c2d2b9e69]
2018-05-08 16:38:50 -04:00
Yaxun (Sam) Liu cd2b1f1baf Add __assert_fail, __device_trap and hipErrorAssert for clang
[ROCm/clr commit: eeedfc5567]
2018-05-08 15:42:27 -04:00
Siu Chi Chan 16d8a56909 add intrinsics mbcnt_lo, mbcnt_hi, lane_id
[ROCm/clr commit: 4f12ddea8f]
2018-05-08 13:43:53 -04:00
Rahul Garg a7be5be448 Added hipMemset3D
[ROCm/clr commit: 78568435da]
2018-05-07 10:24:30 +05:30
Rahul Garg db7e579529 Cleaned up
[ROCm/clr commit: 976b9ed200]
2018-05-02 12:54:17 +05:30
Rahul Garg 6f05c37cde Fix texture 3D for HIP/NVCC
[ROCm/clr commit: 1d76c48e3d]
2018-05-02 11:56:37 +05:30
Maneesh Gupta d6f360e65d Merge pull request #419 from gargrahul/fix_hip_gcc_host_build
Fix gcc build issues for host code

[ROCm/clr commit: 2e6b46f308]
2018-05-01 12:42:50 +05:30
Maneesh Gupta 9ac65ca55c Merge pull request #415 from deven-amd/master
Checkin to fix bugs in math functions.

[ROCm/clr commit: af0c227df4]
2018-05-01 12:29:03 +05:30
Maneesh Gupta 1bc33c9356 Merge pull request #410 from gargrahul/hipCtx_deprecation_warning
Mark hipCtx APIs as deprecated

[ROCm/clr commit: f8431772a8]
2018-05-01 12:23:22 +05:30
Maneesh Gupta 60a66aa10d Merge pull request #406 from gargrahul/fix_tex1D_coordinate_type
Resolve tex1D float to int conversion issue

[ROCm/clr commit: 885e51e1a5]
2018-05-01 09:18:11 +05:30
Rahul Garg f932a51c8e Fix gcc build issues for host code
[ROCm/clr commit: 720e209366]
2018-04-25 12:30:11 +05:30
Deven Desai 13ab5368d0 Checkin to fix bugs in math functions.
This change fixes the following bugs that were discovered while debuggnig TF unit test failures (cwise_ops_test)

1. __hisinf and __hisnan routines
   Both had incorrect implementations.

2. abs
   A "long long" (64bit int) version was missing, resulting in the 32bit version being used for 64bit ints (which resulted in incorrect results, when the value passed in was outside the 32bit int range)

3. lgamma
  We seemed to have a custom version for the 'double' datatype (which was giving incorrect results). Replaced it with a call to the 'double' version of the underlying 'hc::precision_math::lgamma'


[ROCm/clr commit: 65a90c55e7]
2018-04-24 18:10:07 +00:00
Rahul Garg 3111ff5e40 Moved deprecated macro to the end
[ROCm/clr commit: bc61260168]
2018-04-20 21:57:23 +05:30
Rahul Garg bc59051858 Mark hipCtx APIs as deprecated
[ROCm/clr commit: 89674c54a7]
2018-04-20 17:34:48 +05:30
Rahul Garg 65b792cb9b Resolve tex1D float to int conversion issue
[ROCm/clr commit: a898ccfb3f]
2018-04-18 14:15:18 +05:30
Rahul Garg 39a19cc9e8 Added hipMemset2DAsync support
[ROCm/clr commit: fcc0866681]
2018-04-17 18:27:27 +05:30
Maneesh Gupta d8256b0652 Merge pull request #395 from lmoriche/master
Add missing __device__ function attributes.

[ROCm/clr commit: 2ab05a2069]
2018-04-12 14:51:32 +05:30
Laurent Morichetti 957651a021 Add missing __device__ function attributes.
[ROCm/clr commit: 8dcfbf5bee]
2018-04-11 09:29:37 -07:00
Maneesh Gupta 07e41f3ca0 Merge pull request #388 from lmoriche/master
Add support for clang offload bundles and <<<>>> kernel launch.

[ROCm/clr commit: d945c85fa7]
2018-04-09 12:40:28 +05:30
Siu Chi Chan b24d6e7296 adjust the hcc work week for the texture fix
[ROCm/clr commit: 5df923cdfa]
2018-04-06 15:46:55 -04:00
Laurent Morichetti 3e462cc40b Don't include __clang_cuda_builtin_vars.h
[ROCm/clr commit: 7f03ff1012]
2018-04-05 16:27:05 -07:00
Laurent Morichetti f22fbe4271 Add support for clang offload bundles and <<<>>> kernel launch.
[ROCm/clr commit: 323caee8d2]
2018-04-04 13:32:33 -07:00
Rahul Garg db20c24914 Fix texture driver api TRFS flags
[ROCm/clr commit: 414cb24351]
2018-04-02 21:47:20 +05:30
Siu Chi Chan 54357260e8 Change constant address space to 4
when compiling with a newer hcc.  This is
due to a recent change to address space
mapping in the amdgpu compiler backend.


[ROCm/clr commit: 53d9cce9f9]
2018-03-26 18:13:59 -04:00
Laurent Morichetti 941fb5f336 Merge remote-tracking branch 'upstream/master'
[ROCm/clr commit: 8f4c368dce]
2018-03-21 11:17:52 -07:00
Laurent Morichetti 048ffb1693 Add HIP_KERNEL_NAME/HIP_SYMBOL definitions for HIP-clang, and rename hipLaunch->hipLaunchByPtr.
[ROCm/clr commit: 84a723b2dc]
2018-03-21 11:07:21 -07:00
Maneesh Gupta 46ddefedee Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344


[ROCm/clr commit: 9e47fccc89]
2018-03-12 11:29:03 +05:30
Maneesh Gupta ecbb701440 Merge pull request #363 from gargrahul/surface_object_api
Added surface object support

[ROCm/clr commit: eee7fa6072]
2018-03-09 11:50:30 +05:30
Maneesh Gupta 274c65457e Merge pull request #288 from AlexVlx/feature_purge_genco
Purge hsagenco.sh

[ROCm/clr commit: 1190a9e5d0]
2018-03-05 09:59:56 +05:30
Rahul Garg 10ee7a6a80 Fixed byte offset issue
Added HIP/NVCC support


[ROCm/clr commit: d2426e1b9a]
2018-03-04 19:05:37 +05:30
Laurent Morichetti ee4473f588 __CUDA__ and __HIP__ are both defined when compiling with 'clang -x hip', so make sure __HIP__ is not defined in the case of __HIP_PLATFORM_NVCC__.
[ROCm/clr commit: 49f819ab9e]
2018-03-02 06:51:51 -08:00
Laurent Morichetti af04673cd5 Use __HIP__ instead of __HIPCC__, and __CUDA__ instead of __CUDACC__
[ROCm/clr commit: 3251d129ef]
2018-02-28 14:20:55 -08:00
Laurent Morichetti 6b6ed7cd66 Fixes a build error with hcc
[ROCm/clr commit: 70dad80383]
2018-02-28 14:12:09 -08:00