Граф коммитов

818 Коммитов

Автор SHA1 Сообщение Дата
Maneesh Gupta 5b2ca452c1 Merge pull request #669 from ROCm-Developer-Tools/feature_automatic_cast
Remove potential for mismatch between runtime passed actuals and defined formals

[ROCm/hip commit: aed5ad31ba]
2018-09-13 07:54:22 +05:30
Maneesh Gupta 2b59aea015 Merge pull request #661 from yxsamliu/add-empty-printf
Add empty printf for hip-clang

[ROCm/hip commit: 411e53a665]
2018-09-13 07:54:03 +05:30
Alex Voicu f6100dae08 Remove potential for mismatch between runtime passed actuals and defined formals.
[ROCm/hip commit: cdfea3ef7b]
2018-09-12 10:30:48 +01:00
Maneesh Gupta c1d8dc86ff Merge pull request #664 from lcskrishna/master
added __host__ to float2half and half2float functions.

[ROCm/hip commit: 8249cf037b]
2018-09-12 14:50:01 +05:30
Maneesh Gupta 3015572a69 Merge pull request #663 from yxsamliu/fix-launch
Use template for hipLaunchKernelGGL for hip-clang

[ROCm/hip commit: 133d665a88]
2018-09-12 14:49:38 +05:30
carlushuang 7c4aaeff95 fix __longlong_as_double() problem, return the double value
previous version return a long long valus *as* double, hence we may get the wrong result.
this also affect atomicAdd(double * ...), which use long long pointer to mimic double pointer.

Signed-off-by: carlushuang <carlus.huang@amd.com>


[ROCm/hip commit: d577f27d1a]
2018-09-12 13:25:00 +08:00
Yaxun Sam Liu 7e51c5c48d Use template for hipLaunchKernelGGL for hip-clang
[ROCm/hip commit: 9e9a93e10a]
2018-09-07 16:20:00 -04:00
Yaxun Sam Liu 04c5bab9c6 Add empty printf for hip-clang
[ROCm/hip commit: 3e1833ca52]
2018-09-07 16:15:08 -04:00
lcskrishna 95bb14cebc added host for float2half and hlaf2float
[ROCm/hip commit: 2984c020b8]
2018-09-06 15:02:52 -07:00
Maneesh Gupta 489b696bae Merge pull request #654 from ROCm-Developer-Tools/fix-force-inline
__forceinline__ needs inline and always_inline

[ROCm/hip commit: 52b8879f12]
2018-09-03 16:35:34 +05:30
Maneesh Gupta be7f89f25e Merge pull request #657 from yxsamliu/fix-clz
Fix ambiguity of __clz and __clzll

[ROCm/hip commit: a3a93a68d4]
2018-09-03 16:34:42 +05:30
Maneesh Gupta ac4b243c2d Merge pull request #656 from searlmc1/msearles-fixes
Add keyword 'explicit' to avoid ambiguity

[ROCm/hip commit: 6b21d77a86]
2018-09-03 16:33:41 +05:30
Maneesh Gupta f219b3fa35 Merge pull request #651 from yxsamliu/hip-clang-clock
Add clock() and clock64()

[ROCm/hip commit: 7459defec1]
2018-09-03 16:32:30 +05:30
Yaxun Sam Liu 275d66917e Fix ambiguity of __clz and __clzll
[ROCm/hip commit: 11c91c2fdd]
2018-08-31 18:07:57 -04:00
Mark Searles 7c101b2e20 Add keyword 'explicit' to avoid ambiguity
Older gcc, e.g., 5.x, see an ambiguity in some calls. Example error
output as seen with gcc 5.5:

In file included from benchmark_wino.cpp:1:
In file included from ./miopen.hpp:13:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/regex:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/algorithm:62:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/bits/stl_algo.h:66:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/random:51:
/usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/bits/random.tcc:1324:27: error: call to 'abs' is ambiguous
                    const double __y = -std::abs(__n) * __param._M_sm - 1;
                                        ^~~~~~~~
/opt/rocm/hip/include/hip/hcc_detail/hip_complex.h:345:31: note: candidate function
__DEFINE_HIP_COMPLEX_REAL_FUN(abs, hipCabs)


[ROCm/hip commit: aa7ce2ef44]
2018-08-31 11:10:58 -07:00
Mark Searles ff4df50cd5 Add keyword 'explicit' to avoid ambiguity
Older gcc, e.g., 5.x, see an ambiguity in some calls. Example error
output as seen with gcc 5.5:

In file included from benchmark_wino.cpp:1:
In file included from ./miopen.hpp:13:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/regex:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/algorithm:62:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/bits/stl_algo.h:66:
In file included from /usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/random:51:
/usr/lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/bits/random.tcc:1324:27: error: call to 'abs' is ambiguous
                    const double __y = -std::abs(__n) * __param._M_sm - 1;
                                        ^~~~~~~~
/opt/rocm/hip/include/hip/hcc_detail/hip_complex.h:345:31: note: candidate function
__DEFINE_HIP_COMPLEX_REAL_FUN(abs, hipCabs)


[ROCm/hip commit: f0183dfaac]
2018-08-31 10:36:05 -07:00
Aaron Enye Shi 8a602184bb __forceinline__ needs inline and always_inline
Related to SWDEV-163084


[ROCm/hip commit: e7352a1f4a]
2018-08-29 18:33:35 +00:00
Yaxun Sam Liu c1ab349fc7 Add clock() and clock64()
[ROCm/hip commit: 1f74a66bea]
2018-08-29 10:51:00 -04:00
Aaron Enye Shi 9619457b1f Add bitinsert64 to device functions
[ROCm/hip commit: ba9fc6f355]
2018-08-28 20:01:14 +00:00
Aaron Enye Shi eb2e7e0671 Clean up and add meaningful variables to bit funcs
[ROCm/hip commit: b939a3c6ed]
2018-08-28 18:19:48 +00:00
Aaron Enye Shi 1d29819850 Add bitextract and bitinsert functions
[ROCm/hip commit: b445e45007]
2018-08-20 16:46:12 +00:00
Maneesh Gupta 236c7002b4 Merge pull request #623 from ROCm-Developer-Tools/tf18
Fix declaration conflict when hip/math_functions.h is included first

[ROCm/hip commit: d8d45a906c]
2018-08-10 09:36:27 +05:30
Maneesh Gupta 28739aa597 Merge pull request #613 from ROCm-Developer-Tools/hcc-compat
Add HCC compatibility mode for hip-clang

[ROCm/hip commit: 11cccaa5d0]
2018-08-10 09:32:31 +05:30
Yaxun Sam Liu 9c2a33b5c9 Fix __HIP_ARCH_* not defined after including math_functions.h
hcc_detail/math_functions.h used to include hcc_detail/hip_runtime.h.

Removing it has caused regression in TensorFlow 1.8.

Put it back for backward compatibiliity.


[ROCm/hip commit: b8a0c14171]
2018-08-08 08:55:28 -04:00
Yaxun Sam Liu 735e7ac097 Fix __HIP_DEVICE_COMPILE__ not defined when hip/math_functions.h is included
This fixes build failure in TensorFlow 1.8 for HCC


[ROCm/hip commit: 450ea49df0]
2018-08-07 17:14:39 -04:00
Yaxun Sam Liu fd1b704358 Fix declaration conflict when hip/math_functions.h is included first
This fixes build failure in TensorFlow 1.8 for HCC


[ROCm/hip commit: dacb18414e]
2018-08-07 15:44:59 -04:00
Wen-Heng (Jack) Chung 38b6402860 Revert "HIP program state re-initialization logic"
This reverts commit e5ca9eb081.


[ROCm/hip commit: 2604f33930]
2018-08-03 17:03:04 -05:00
Maneesh Gupta 9ddcc6e6c6 Merge pull request #603 from b-sumner/master
Drop use of NVCC_COMPAT since it is always set

[ROCm/hip commit: 78ca12d583]
2018-08-03 08:45:18 +05:30
Maneesh Gupta f0dfb51e39 Merge pull request #610 from aaronenyeshi/enable-hcc-module-launch
Enable hipHccModuleLaunchKernel on HIP-Clang

[ROCm/hip commit: d0cdc69676]
2018-08-02 08:08:46 +05:30
Yaxun Sam Liu 9e3a94dbf0 Add hc_get_workitem_absolute_id for hip-clang HCC compatibility mode
[ROCm/hip commit: ef1d1d57f7]
2018-08-01 15:14:38 -04:00
Yaxun Sam Liu 43437a3689 Add HCC compatibility mode
[ROCm/hip commit: 43bb490947]
2018-08-01 15:14:38 -04:00
Aaron Enye Shi 12414015fa Enable hipHccModuleLaunchKernel on HIP-Clang
[ROCm/hip commit: d1149a9b64]
2018-07-31 20:38:20 +00:00
Aaron Enye Shi 415e5e0c7f Protect macro TYPEDEF_VECTOR_VALUE_TYPE and prefix __hip_ for vector_value_types
[ROCm/hip commit: 99e6496898]
2018-07-30 20:41:24 +00:00
Aaron Enye Shi 390fedfb35 Ensure correct vector value type used in texture
Implement the vector value types in terms of SCALAR_TYPE##SIZE_vector_value_type for float, int, uint and sizes 2, 3, 4, 8, and 16.


[ROCm/hip commit: e0e785a45d]
2018-07-30 19:43:12 +00:00
Brian Sumner 94afa0fc08 Drop use of NVCC_COMPAT since it is always set
[ROCm/hip commit: 71f96388ed]
2018-07-27 09:29:29 -07:00
Aaron Enye Shi c53a494be9 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.


[ROCm/hip commit: 8c50bcfdab]
2018-07-25 19:52:19 +00:00
Maneesh Gupta f87491f61c Merge pull request #584 from ROCm-Developer-Tools/fix-vector-explicit-cast
Fix explicit cast required

[ROCm/hip commit: 06db076b10]
2018-07-23 10:13:05 +05:30
Aaron Enye Shi 89a00bc280 Fix explicit cast required
This is required for PyTorch which runs into an issue with narrowing types. Requires an explicit cast.

[ROCm/hip commit: 4ddb81424f]
2018-07-20 16:34:15 -04:00
Aaron Enye Shi 3408e6440d [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.

[ROCm/hip commit: ffefae77d7]
2018-07-20 13:25:04 -04:00
Maneesh Gupta 9648844caf Merge pull request #543 from ROCm-Developer-Tools/add-std-complex
Support std::complex for hip-clang

[ROCm/hip commit: 12202dae90]
2018-07-19 07:14:45 +05:30
Yaxun (Sam) Liu 30e14f699b Support std::complex for hip-clang
[ROCm/hip commit: 80438035c2]
2018-07-18 00:08:04 -04:00
Alex Voicu 4f0111994e Update hip_vector_types.h
[ROCm/hip commit: 487bb6f2ef]
2018-07-17 17:28:48 +01:00
Alex Voicu 45018c46cb Not yet.
[ROCm/hip commit: 73d0091328]
2018-07-17 17:21:10 +01:00
Alex Voicu 6005a9d8d6 Constrain variadic constructor to ranks > 1 and add missing __device__s
[ROCm/hip commit: 3e2755adab]
2018-07-17 17:17:48 +01:00
Maneesh Gupta c86d32350a Merge branch 'master' into move-memcpy
[ROCm/hip commit: b5cfa773ef]
2018-07-17 10:51:42 +05:30
Maneesh Gupta d24617e118 Merge branch 'master' into feature_native_vector_types
Change-Id: I943b94ee230871a960d8f9c321ad5e096183b415


[ROCm/hip commit: fb5199dee6]
2018-07-17 09:51:22 +05:30
Maneesh Gupta d655537bc6 Merge pull request #515 from ROCm-Developer-Tools/hipclang-add-amdgcn-funcs
Add hipclang amdgcn functions

[ROCm/hip commit: fbbe2599dd]
2018-07-17 09:25:09 +05:30
Alex Voicu b47b4c771d Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_native_vector_types
[ROCm/hip commit: fe289dbebe]
2018-07-15 11:44:48 +01:00
Evgeny Mankov b063b3eb26 [HIPIFY] Support of cudaComputeMode / CUcomputemode
+ update docs
+ fix typo in hip_runtime_api.h


[ROCm/hip commit: 55e21055e3]
2018-07-14 16:08:19 +03:00
Maneesh Gupta 0d92d4d9e3 Merge pull request #563 from gargrahul/add_gettexrefoffset_nvcc
Add hipGetTextureAlignmentOffset and hipGetChanDesc on NVCC path

[ROCm/hip commit: 4aef1351fc]
2018-07-11 15:01:20 +05:30