Commit Graph

12942 Commits

Author SHA1 Message Date
wsttiger 618f4bf702 Improve hipStreamWaitEvent test.
- use addOne kernel, use local initializer rather than init_array.
- use addOneReverse test to add from back of array.  Test alternate fwd and backward to stress dependency logic.
- check device-side dependencies.


[ROCm/clr commit: a10d37e5e6]
2017-05-05 17:29:04 -05:00
Evgeny Mankov 3028345953 [HIPIFY] LLVM 3.9 support
3.8 and 3.9 are both supported. 3.8 is stable, 3.9 needs more testing.


[ROCm/clr commit: 054bf0859d]
2017-05-05 21:28:02 +03:00
foreman 8b0f3756d7 P4 to Git Change 1406177 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/05 03:00:41
SWDEV-2 - Change OpenCL version number from 2415 to 2416.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2163 edit


[ROCm/clr commit: 6d650dd3ee]
2017-05-05 03:17:09 -04:00
foreman d9fa7ae96c P4 to Git Change 1405526 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/04 03:00:05
SWDEV-2 - Change OpenCL version number from 2414 to 2415.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2162 edit


[ROCm/clr commit: ea32d564cc]
2017-05-04 03:06:25 -04:00
Rahul Garg ba1a3360ab hipMemcpy2DAsync for HIP/NVCC
Change-Id: I46f0057fef49bdaaac41c1df80c3e27432b8f376


[ROCm/clr commit: f77059218c]
2017-05-04 06:47:55 +05:30
Evgeny Mankov e9ad0f3b00 [HIPIFY] CUDA RT memcpy functions update.
cudaMemcpyFromSymbol -> hipMemcpyFromSymbol
cudaMemcpyFromSymbolAsync -> hipMemcpyFromSymbolAsync
cudaMemcpy2DAsync -> hipMemcpy2DAsync


[ROCm/clr commit: 2636d91ba4]
2017-05-03 23:05:44 +03:00
Evgeny Mankov df05e96760 [HIPIFY] Blas update: add a few functions, supported by HIP.
cublasDaxpy -> hipblasDaxpy
cublasDgemv -> hipblasDgemv
cublasDger  -> hipblasDger
cublasDgemm -> hipblasDgemm
cublasDgemmBatched -> hipblasDgemmBatched
cublasGetStream -> hipblasGetStream
cublasSetStream -> hipblasSetStream
cublasDaxpy -> hipblasDaxpy


[ROCm/clr commit: 72df25a0c7]
2017-05-03 22:45:56 +03:00
Evgeny Mankov 3ca552c669 [HIPIFY] HIPIFY and HIP sync with CUDA Driver API data types.
+ Update CUDA_Driver_API_functions_supported_by_HIP.md.
+ Final update of HIPIFY with CUDA driver data types.

[TODO] Syncing HIPIFY and HIP by CUDA Driver API functions.


[ROCm/clr commit: 3b40776244]
2017-05-03 21:59:48 +03:00
Rahul Garg 9739d5d60f Added support for hipMemcpy2DAsync in HIP/HCC
Change-Id: Ia4a8306f2dc1e33a81a7195ec29aef652fcccc4b


[ROCm/clr commit: b136e80a45]
2017-05-03 22:29:12 +05:30
foreman 90395291d7 P4 to Git Change 1405035 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/03 03:00:04
SWDEV-2 - Change OpenCL version number from 2413 to 2414.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2161 edit


[ROCm/clr commit: 6b4034a2d6]
2017-05-03 03:07:30 -04:00
foreman c438c95820 P4 to Git Change 1404496 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/02 03:00:04
SWDEV-2 - Change OpenCL version number from 2412 to 2413.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2160 edit


[ROCm/clr commit: 6c858567f2]
2017-05-02 03:10:50 -04:00
foreman 1f24dbaddd P4 to Git Change 1404293 by lmoriche@lmoriche_opencl_dev2 on 2017/05/01 16:43:07
SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime
	- Changes required to use the Khronos ICD sources instead of ours.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#3 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#54 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_platform.h#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpubinary.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpubinary.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#319 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#127 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#233 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#239 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/object.hpp#18 edit


[ROCm/clr commit: 26720154d9]
2017-05-01 15:54:18 -05:00
foreman e56f652c91 P4 to Git Change 1404293 by lmoriche@lmoriche_opencl_dev2 on 2017/05/01 16:43:07
SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime
	- Changes required to use the Khronos ICD sources instead of ours.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#3 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#54 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_platform.h#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpubinary.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpubinary.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#319 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#127 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#233 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#239 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/object.hpp#18 edit


[ROCm/clr commit: 0af2c7043c]
2017-05-01 15:54:18 -05:00
foreman f7e62f182d P4 to Git Change 1404073 by johtaylo@johtaylo-jtincrementor-increment on 2017/04/29 03:00:05
SWDEV-2 - Change OpenCL version number from 2411 to 2412.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2159 edit


[ROCm/clr commit: d26b48851b]
2017-04-29 03:11:52 -04:00
Evgeny Mankov 03595a9883 [HIPIFY] Rename enumConstantDecl -> enumDecl
Reason: not to mix up with clang's enumConstantDecl, used for enum DeclRefExpr (enum constant).


[ROCm/clr commit: 3e89277a9b]
2017-04-28 21:59:33 +03:00
Evgeny Mankov 3252416883 * [HIPIFY] [FIX] Replacement error: enum cudaMemcpyKind kind -> hipMemcpyKindyKind kind
https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/issues/72

[Solution] [Workaround]
Offset calculation for enum VarDecl as param decl, declared with enum type specifier.

[Result]
enum cudaMemcpyKind kind -> enum hipMemcpyKind kind

[ToDo]
Test on terminal qualifiers (const, etc).


[ROCm/clr commit: 85a32c3987]
2017-04-28 21:45:36 +03:00
Evgeny Mankov 3e06497eaa [HIPIFY] [FIX] replacement error: cudaError_t -> hipError_t_t
https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/issues/71

[Solution]
getUnqualifiedType for enumConstantDecl's type is added, except ordinary enum declarations (w/o typedef).

[ToDo]
Find more appropriate way of distinguishing redefined enum declarations and ordinary ones.


[ROCm/clr commit: 5f76cf3098]
2017-04-28 21:03:03 +03:00
Aditya Atluri 6dccc18fa0 fixed hipFuncSetCacheConfig on rocm path
Change-Id: I937a3afbf115edc94a753a0beb2230ed60a6f021


[ROCm/clr commit: 208bdbbcbb]
2017-04-28 11:53:11 -05:00
foreman b9b49b2802 P4 to Git Change 1403666 by johtaylo@johtaylo-jtincrementor-increment on 2017/04/28 03:00:06
SWDEV-2 - Change OpenCL version number from 2410 to 2411.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2158 edit


[ROCm/clr commit: f35795b992]
2017-04-28 03:11:31 -04:00
foreman dad2209b14 P4 to Git Change 1403557 by skeely@skeely_HSA_linux on 2017/04/27 19:44:48
SWDEV-119446 - Improve small copy perf in SHOC.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#18 edit


[ROCm/clr commit: 285475fccb]
2017-04-27 19:53:00 -04:00
foreman bfeb26c58a P4 to Git Change 1403323 by lmoriche@lmoriche_opencl_dev2 on 2017/04/27 10:58:55
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Fix the Makefile and CMakeLists after removing libHSAIL.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#14 edit


[ROCm/clr commit: 0a139b1670]
2017-04-27 11:15:31 -04:00
foreman 428b2f64ad P4 to Git Change 1403149 by johtaylo@johtaylo-jtincrementor-increment on 2017/04/27 03:00:04
SWDEV-2 - Change OpenCL version number from 2409 to 2410.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2157 edit


[ROCm/clr commit: 75c7835453]
2017-04-27 03:09:06 -04:00
foreman dfb91ffa70 P4 to Git Change 1403108 by lmoriche@lmoriche_palamida on 2017/04/27 00:33:06
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Remove the dependency on libHSAIL

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#37 edit


[ROCm/clr commit: debd366bfd]
2017-04-27 00:42:38 -04:00
foreman 2918240ae9 P4 to Git Change 1403108 by lmoriche@lmoriche_palamida on 2017/04/27 00:33:06
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Remove the dependency on libHSAIL

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#37 edit


[ROCm/clr commit: 5127770544]
2017-04-27 00:42:38 -04:00
Aditya Atluri c662b426dc fixed fast math expf and exp10f
Change-Id: I73963220f902efebb0a7404c5f8966dffb4c35ca


[ROCm/clr commit: f368271872]
2017-04-26 19:01:10 -05:00
Aditya Atluri afec5e075b added hipFuncSetCacheConfig API for nvcc path
Change-Id: I87fae35bc0e10a0dca5ae1c5015fe5d9e52a1d0d


[ROCm/clr commit: e91c35fde0]
2017-04-26 18:56:57 -05:00
foreman e5bb181607 P4 to Git Change 1403001 by lmoriche@lmoriche_palamida on 2017/04/26 17:13:04
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Add -Bsymbolic to the linker flags.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#2 edit


[ROCm/clr commit: 425038afba]
2017-04-26 18:06:50 -04:00
foreman eb707d16ba P4 to Git Change 1402945 by lmoriche@lmoriche_palamida on 2017/04/26 16:03:39
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#5 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/tools/bc2h/CMakeLists.txt#1 add


[ROCm/clr commit: 8e140c9485]
2017-04-26 16:10:30 -04:00
foreman c2cfba473d P4 to Git Change 1402945 by lmoriche@lmoriche_palamida on 2017/04/26 16:03:39
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#5 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/tools/bc2h/CMakeLists.txt#1 add


[ROCm/clr commit: a1efbe4b5b]
2017-04-26 16:10:30 -04:00
Maneesh Gupta f5f4850297 Merge branch 'amd-master' into amd-develop
[ROCm/clr commit: a5fb13bab3]
2017-04-26 23:55:13 +05:30
foreman 86bfb54749 P4 to Git Change 1402826 by lmoriche@lmoriche_opencl_dev2 on 2017/04/26 12:05:30
SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime
	- Cleanups to build with gcc 5.4 and cmake.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.cpp#37 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.hpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/blit.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprintf.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#65 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#36 edit


[ROCm/clr commit: d2ca5e309d]
2017-04-26 12:23:11 -04:00
foreman e121e9beb2 P4 to Git Change 1402800 by fdaniil@rocm_spec on 2017/04/26 11:33:07
SWDEV-102733 - switched off library test build by default, removed redundant dependencies

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#4 edit


[ROCm/clr commit: 5164dd1244]
2017-04-26 12:09:46 -04:00
foreman cb87398321 P4 to Git Change 1402800 by fdaniil@rocm_spec on 2017/04/26 11:33:07
SWDEV-102733 - switched off library test build by default, removed redundant dependencies

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#4 edit


[ROCm/clr commit: 681d0e22fb]
2017-04-26 12:09:46 -04:00
foreman c1f1403da9 P4 to Git Change 1402621 by johtaylo@johtaylo-jtincrementor-increment on 2017/04/26 03:00:04
SWDEV-2 - Change OpenCL version number from 2408 to 2409.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2156 edit


[ROCm/clr commit: 2013eecf2e]
2017-04-26 03:11:16 -04:00
foreman b3dd1b53d7 P4 to Git Change 1402535 by lmoriche@lmoriche_opencl_dev2 on 2017/04/25 20:42:52
SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime
	- Use the access flags in the metadata to handle read-only arguments.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#35 edit


[ROCm/clr commit: 6e6d58727c]
2017-04-25 20:51:55 -04:00
foreman 67d99f9925 P4 to Git Change 1402067 by johtaylo@johtaylo-jtincrementor-increment on 2017/04/25 03:00:04
SWDEV-2 - Change OpenCL version number from 2407 to 2408.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2155 edit


[ROCm/clr commit: 915c8a0258]
2017-04-25 03:08:23 -04:00
Sun, Peng a82ecbcc13 fix hip_complex.h header on NV path
Change-Id: Ia95d003ca1b284bab1c76723050e6b3b89178f65


[ROCm/clr commit: 50daa408aa]
2017-04-25 00:15:20 -05:00
Ben Sander 579b8e5050 Add host offset checking
[ROCm/clr commit: fbf28a8728]
2017-04-24 22:30:54 -05:00
Ben Sander 20315571bd Refactor hipHostRegister test.
- Add more testing for offsets.
- Parse cmdline options and use --tests.


[ROCm/clr commit: e7af4ef641]
2017-04-24 22:30:54 -05:00
Ben Sander aa4c89380e Refactor hipHostRegister to cover misaligned cases.
[ROCm/clr commit: 5ba167b82b]
2017-04-24 22:30:54 -05:00
Ben Sander 0e042a1529 Tailor pointer info for src/dst before calling HCC copy routines.
HCC sometimes uses the srcPtrInfo or dstPtrInfo to determine the
pointer.  Make sure these use the actual pointer and not the base
of the allocation.


[ROCm/clr commit: 3da8e94cbf]
2017-04-24 22:30:54 -05:00
Ben Sander 67383ddb5c Add test for non-page-aligned mem copies.
[ROCm/clr commit: d120b2dd12]
2017-04-24 22:30:54 -05:00
Ben Sander 37fcb3bd13 Add corrected test for offsets
[ROCm/clr commit: b44a3eefd1]
2017-04-24 22:30:54 -05:00
Ben Sander 04082c14a7 Refactor hipMemcpy test to share mem alloc for multiple copies.
[ROCm/clr commit: 6b16f56f38]
2017-04-24 22:30:54 -05:00
Ben Sander 88fa748893 Add negative testing for memory full condition.
[ROCm/clr commit: 693e5abc1c]
2017-04-24 22:30:54 -05:00
Ben Sander eef8282c96 Fix hip debug for case where copyAgent is null (host-to-host)
[ROCm/clr commit: dfacfbb641]
2017-04-24 22:30:54 -05:00
Ben Sander 05c136e7b8 Fix hipMalloc to return error code if allocation fails.
[ROCm/clr commit: fb7eee01ff]
2017-04-24 22:30:54 -05:00
Aditya Atluri 8d9e22c975 fixed build issues with hipPointerGetAttributes
Change-Id: I3f5fbc05bdaef720884ba949075928752a070377


[ROCm/clr commit: 1f532b06f6]
2017-04-24 15:31:07 -05:00
Aditya Atluri 119f5a1e67 changed arguments for hipPointerGetAttributes
Change-Id: Ia7a7c4722c1f7d0a23f0e5cc3dd6dea6c01c1fd8


[ROCm/clr commit: 85c189c846]
2017-04-24 15:24:16 -05:00
foreman 636fb8fcf3 P4 to Git Change 1401775 by fdaniil@rocm_spec on 2017/04/24 12:28:56
SWDEV-102733 - added include dir for generated .inc files

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#3 edit


[ROCm/clr commit: f15b5548b3]
2017-04-24 12:36:29 -04:00