Commit Graph

757 Commits

Author SHA1 Message Date
Michael LIAO cb55dc384a [test] Use explicit cast for address space cast.
[ROCm/hip commit: 2746d95906]
2019-05-03 14:56:00 -04:00
Maneesh Gupta f42dc08384 Merge pull request #1058 from mhbliao/hliao/master/devfunc
[Device Function] Fix implementation

[ROCm/hip commit: 37d01a7da9]
2019-05-03 17:47:51 +05:30
emankov 1f57ee6125 [HIPIFY][tests] Add cuSPARSE CSR-BCSR-SPMV-conversions example
[ROCm/hip commit: e3082f5142]
2019-04-30 17:37:34 +03:00
Michael LIAO e637e72364 [Device Function] Fix implementation of __bitinsert_u64
- It's a common mistake by assuming 1 << shamt would be promoted to
  64-bit, if shamt is a 64-bit integer. That's not the case. Replace
  that left shift to a 64-bit one to ensure it won't fall into undefined
  behavior.
- Fix the host-side implementation as well for device function testing.


[ROCm/hip commit: 9bd2d5746d]
2019-04-30 08:59:13 -04:00
Evgeny Mankov 86d68901da [HIPIFY][DNN] cudnnSetFilter4dDescriptor support
[ROCm/hip commit: 3fee0f3765]
2019-04-25 12:18:51 +03:00
Rahul Garg c01236f679 Add hipMallocManaged default functional support (#1036)
* Add hipMallocManaged default functional support

* Fix build error

* Add dtest


[ROCm/hip commit: 2bc2c46d4d]
2019-04-24 16:50:03 +05:30
Rahul Garg d0951a9c20 Fix D2DAsync test
[ROCm/hip commit: e5e7651a4a]
2019-04-18 07:35:06 +05:30
Evgeny Mankov 7bbf825c74 [HIPIFY][tests] Fix typo in test for CUDA 10.x
[ROCm/hip commit: 8bca9f1d7a]
2019-04-01 19:52:08 +03:00
Evgeny Mankov 1397bf79d8 [HIPIFY][tests] Update lit testing infrastructure
+ Set -D__LP64__ in case of 64-bit hipify-clang binary
  [partial workaround for clang's bug https://bugs.llvm.org/show_bug.cgi?id=38811]

  C:/GIT/LLVM/trunk/llvm-64-release-vs2017/dist/lib/clang/9.0.0\include\__clang_cuda_device_functions.h(1609,45): error GEF7559A7: no matching function for call to 'roundf'
  __DEVICE__ long lroundf(float __a) { return roundf(__a); }

  #if defined(__LP64__)
  __DEVICE__ long lround(double __a) { return llround(__a); }
  __DEVICE__ long lroundf(float __a) { return llroundf(__a); } // ok: llroundf should be used when 64-bit
  #else
  __DEVICE__ long lround(double __a) { return round(__a); }
  __DEVICE__ long lroundf(float __a) { return roundf(__a); } // error
  #endif

+ Print more system info while testing in the following form:
  ========================================
  CUDA 9.0 - will be used for testing
  LLVM 9.0.0svn - will be used for testing
  AMD64 - Platform architecture
  Windows 10 - Platform OS
  64 - hipify-clang binary bitness
  32 - python 3.7.2 binary bitness
  ========================================


[ROCm/hip commit: e899ee0e06]
2019-03-06 19:26:05 +03:00
Maneesh Gupta df7d8c46ed Merge pull request #932 from ROCm-Developer-Tools/feature_maybe_dlopen_test
Add one test case for complex dynamic loading behavior

[ROCm/hip commit: 0c4a40efcc]
2019-03-06 17:32:23 +05:30
Maneesh Gupta 54c72c1079 Update hipMemset.cpp
Address build issues on nvcc path.

[ROCm/hip commit: 51f29b9cee]
2019-03-05 12:11:11 +05:30
Wen-Heng (Jack) Chung 085c6c15b2 Add direct test for hipMemsetD32 and hipMemsetD32Async
[ROCm/hip commit: bfde8a7fab]
2019-03-04 17:20:32 +00:00
Rahul Garg 7a9ebee08a Fix review comments
[ROCm/hip commit: 131c0ea326]
2019-03-02 23:38:37 +05:30
Rahul Garg 4093c03dd7 Fix hipMemset test for HIP/NVCC
[ROCm/hip commit: 77c6d5451f]
2019-03-01 03:46:57 +05:30
Rahul Garg fa0c9d8a73 Update hipMemset test
[ROCm/hip commit: 026dc9457e]
2019-02-28 06:54:49 +05:30
Wen-Heng (Jack) Chung c79a5a798e Add one test case for complex dynamic loading behavior
Existing HIT syntax doesn't seem to support the expected build and run steps
for this test.


[ROCm/hip commit: 8e5bb3c57a]
2019-02-25 17:03:31 +00:00
Evgeny Mankov 5f4b9a8f8f [HIPIFY][tests] caffe2 test fix
[ROCm/hip commit: 3a8ef9c8a2]
2019-02-25 17:12:32 +03:00
Evgeny Mankov 3a57fc0a4b [HIPIFY][Caffe2] Initial Caffe2 support
[ROCm/hip commit: 2619f22e5c]
2019-02-23 20:46:22 +03:00
Evgeny Mankov d91590a98b [HIPIFY][DNN] Revise and sync with CUDNN 10 and hipDNN
+ CUDNN_API_supported_by_HIP.md update
+ CUDA_Runtime_API_functions_supported_by_HIP.md update
+ libraryPropertyType_t is moved to Runtime
+ test update


[ROCm/hip commit: d26dc3cea7]
2019-02-13 19:40:59 +03:00
Evgeny Mankov 88da4a036f [HIPIFY][RAND] revise
+ add missing functions
+ add minimum rocRAND support
+ updated CURAND_API_supported_by_HIP.md


[ROCm/hip commit: 7ba8c440e6]
2019-02-08 17:54:28 +03:00
Evgeny Mankov 032cb00926 [HIPIFY][BLAS][tests] Add tests on hipifying to 'roc'
[ROCm/hip commit: 385fe36f2a]
2019-02-07 19:25:23 +03:00
Maneesh Gupta 3686db5456 Merge pull request #863 from aaronenyeshi/add-dot-instructions
Add Dot functions as amd_mixed_dot function

[ROCm/hip commit: 50a12f1ce1]
2019-01-29 06:01:01 +05:30
Aaron Enye Shi ba1452b664 Fix mixed dot for Jenkins rocm_2_0
[ROCm/hip commit: ede494bd5f]
2019-01-24 22:48:35 +00:00
Aaron Enye Shi aabdf3a1b2 Exclude mixed dot functions from nvcc path
[ROCm/hip commit: 7e46f0639c]
2019-01-24 21:00:45 +00:00
Evgeny Mankov e65d1f2dc1 [HIPIFY] CUDA Runtime API functions total revise (up to CUDA 10.0)
+ for all CUDA versions starting from 7.0
+ add missing functions
+ sync with HIP
+ update CUDA_Runtime_API_functions_supported_by_HIP.md
+ update affected tests
+ fix typos
+ formatting, annotating


[ROCm/hip commit: 4ff355357f]
2019-01-24 14:05:36 +03:00
Aaron Enye Shi 2ae4e21bb9 Fix mixed dot for Jenkins rocm_head
[ROCm/hip commit: f31aa946e7]
2019-01-23 16:39:25 +00:00
Aaron Enye Shi b1d61f076f Add tests for dot functions
[ROCm/hip commit: 1d70f4217e]
2019-01-22 22:32:28 +00:00
Evgeny Mankov ea31378dc1 [HIPIFY][tests] Exclude one more test if CUDA == 7.0, which is of CUDA 7.5
[ROCm/hip commit: 841e056935]
2019-01-22 22:26:43 +03:00
Yaxun Sam Liu 99e563d8a0 Fix get_time in tests for nvcc
[ROCm/hip commit: aa6abb0dcf]
2019-01-21 14:07:50 -05:00
Yaxun Sam Liu 934b6929d0 Use chrono instead of sys/time.h in test
sys/time.h is not available on Windows. Use C++11 <chrono> instead so that the tests
compile on Windows.


[ROCm/hip commit: 05b5e30187]
2019-01-20 00:05:27 -05:00
Evgeny Mankov b932304bfc [HIPIFY] option cuda-path might be used with '--' as well as with a single dash: '-'
+ Update README.md


[ROCm/hip commit: 0206fadc14]
2019-01-10 18:01:33 +03:00
Evgeny Mankov 6acede94f5 [HIPIFY] Introduce CUDA installation path option '-cuda-path'
Repeats clang's '--cuda-path' option.

[Reason]
In case of absence of any other clang's options setting '-cuda-path' allows not to specify separator '--' before clang's '--cuda-path'.

+ Tests and scripts are updated accordingly.


[ROCm/hip commit: fbfe005e4e]
2019-01-09 20:18:36 +03:00
Maneesh Gupta cf7c7f2db2 Update hipAsynchronousStreams.cpp
This test needs to be excluded from nvcc platform

[ROCm/hip commit: 580c808400]
2019-01-07 09:26:21 +05:30
Sameer Sahasrabuddhe d1a7eb0cb5 introduce test for asynchronous streams
This test is identical to the HCC tests under
tests/Unit/OCKL/AsyncStreams, but only for synchronous operation.


[ROCm/hip commit: 8fe2a4b167]
2019-01-04 05:51:50 -05:00
emankov 74f77c9f29 [HIPIFY][tests] CUDA 7.0 is also supported
+ Exclude 1 test for CUDA 7.0
+ Update README.md


[ROCm/hip commit: 9abcad9407]
2019-01-04 01:32:30 +03:00
emankov 15949403b4 [HIPIFY][tests] Exclude CUDA 8.0 (9.0) tests if CUDA < 8.0 (9.0)
[ROCm/hip commit: 65155c7159]
2019-01-03 18:06:49 +03:00
emankov 8883153c05 [HIPIFY][tests] Reduce cudaRegister.cu test
[ROCm/hip commit: 7fb0f4ee2a]
2019-01-03 17:17:21 +03:00
Maneesh Gupta 09a02a63a7 Merge pull request #818 from yxsamliu/fix-hip-config
Add default arguments for hipConfigureCall

[ROCm/hip commit: 4d0266a495]
2019-01-01 10:25:25 +05:30
Maneesh Gupta 23bc02a493 Merge pull request #821 from gargrahul/remove_redundancy_memset3d_test
[dtest] Remove redundant arguments from hipMemset3D test

[ROCm/hip commit: cb8e28144a]
2018-12-31 15:32:19 +05:30
emankov 142d00b382 [HIPIFY] Get rid of setting '--cuda-gpu-arch='
[Reasons]
+ We don't compile kernel code at least for now as HIP kernel syntax is almost equal CUDA's;
+ clang always includes PTX in its binaries, so e.g. a binary compiled with --cuda-gpu-arch= would be forwards-compatible with e.g. sm_35 GPUs.


[ROCm/hip commit: dec459efca]
2018-12-29 19:48:28 +03:00
emankov 4e50eba101 [HIPIFY] Starts implicitly setting '-x cuda' by hipify-clang itself
+ No need in setting '-x cuda' for the user anymore;
+ Testing and Readme updated accordingly.


[ROCm/hip commit: 7ea586c323]
2018-12-29 17:04:59 +03:00
emankov d6593e4138 [HIPIFY][win] Set -std=c++14 if MSVC
+ Due to latest Windows SDK implementation based on c++14 features, '-std+c++14' is a must;
+ Doesn't affect older versions of MSVC 2017, 2015 (the latest supported is MSVC 2015);
+ On linux still '-std=c++11' is a must;
+ Exclude '-std=' from lit config.


[ROCm/hip commit: 2d3f62c3e1]
2018-12-29 15:51:06 +03:00
Rahul Garg 42a683e159 Remove redundant arguments from hipMemset3D test
[ROCm/hip commit: 4272119eeb]
2018-12-20 06:51:22 +05:30
Yaxun Sam Liu e9532108bb Add default arguments for hipConfigureCall
[ROCm/hip commit: ec03a8b352]
2018-12-18 15:48:21 -05:00
Aaron Enye Shi 8e7b49d1cf Add *_rn functions back into HIP intrinsics
Add back the round-to-nearest-even intrinsics back to HIP math
intrinsics as it caused regression.


[ROCm/hip commit: 58dfeff27a]
2018-12-18 19:31:54 +00:00
Evgeny Mankov 237d9e2a37 [HIPIFY][tests][fix] Add correct CUDA version detection while testing
+ Just do load_config for lit.site.cfg earlier in lit.cfg to get initialized cuda_version
+ Remove lit.cfg.in for CMake variables substitution
+ Return back lit.cfg
+ Exclude CUDA 9.0 tests if CUDA < 9.0
+ Report CUDA version before running tests


[ROCm/hip commit: 3d528cf491]
2018-12-12 17:05:01 +03:00
Evgeny Mankov c91d1ef0db [HIPIFY][tests][fix] Add correct CUDA version detection while testing
+ Add lit.cfg.in for CMake variables substitution to now generated lit.cfg
+ Exclude lit.cfg
+ Exclude CUDA 9.0 tests if CUDA < 9.0
+ Report CUDA version before running tests


[ROCm/hip commit: b955e317a7]
2018-12-11 22:03:11 +03:00
Evgeny Mankov 5cae606a0f [HIPIFY][tests] Reorganization
[ROCm/hip commit: 09612ac03f]
2018-12-04 20:47:34 +03:00
Evgeny Mankov fd03a77da0 [HIPIFY][SPARSE] Add 3 more CUDA 10.0 tests
+ lit update
+ fix typos


[ROCm/hip commit: 72d40db358]
2018-12-04 19:24:29 +03:00
Evgeny Mankov 71005f60da [HIPIFY][SPARSE] Matrix Reorderings and Format Conversion Reference
+ cuSPARSE is supported up to CUDA 10.0
+ cuSPARSE_08 test (CUDA 10.0)
+ update CUSPARSE_API_supported_by_HIP.md
+ lit: add a rule for CUDA 10.0 tests excluding


[ROCm/hip commit: 116b9191f7]
2018-11-30 15:33:57 +03:00