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

13197 Коммитов

Автор SHA1 Сообщение Дата
Ben Sander e417eb5d35 Refactor hipHostRegister test.
Run all tests in one command.
Run 128 offsets.
2017-05-05 17:29:04 -05:00
Ben Sander 444e4a20ba Update streamEventTEst.
- add checks for events across devices.
- refactor test to make sure it runs long enough to sensitive sync
  techniques.
- add tests for DeviceSync, streamWaitEvent.
2017-05-05 17:29:04 -05:00
wsttiger a10d37e5e6 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.
2017-05-05 17:29:04 -05:00
Evgeny Mankov 054bf0859d [HIPIFY] LLVM 3.9 support
3.8 and 3.9 are both supported. 3.8 is stable, 3.9 needs more testing.
2017-05-05 21:28:02 +03:00
foreman 6d650dd3ee 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
2017-05-05 03:17:09 -04:00
foreman ea32d564cc 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
2017-05-04 03:06:25 -04:00
Rahul Garg f77059218c hipMemcpy2DAsync for HIP/NVCC
Change-Id: I46f0057fef49bdaaac41c1df80c3e27432b8f376
2017-05-04 06:47:55 +05:30
Evgeny Mankov 2636d91ba4 [HIPIFY] CUDA RT memcpy functions update.
cudaMemcpyFromSymbol -> hipMemcpyFromSymbol
cudaMemcpyFromSymbolAsync -> hipMemcpyFromSymbolAsync
cudaMemcpy2DAsync -> hipMemcpy2DAsync
2017-05-03 23:05:44 +03:00
Evgeny Mankov 72df25a0c7 [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
2017-05-03 22:45:56 +03:00
Evgeny Mankov 3b40776244 [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.
2017-05-03 21:59:48 +03:00
Rahul Garg b136e80a45 Added support for hipMemcpy2DAsync in HIP/HCC
Change-Id: Ia4a8306f2dc1e33a81a7195ec29aef652fcccc4b
2017-05-03 22:29:12 +05:30
foreman 6b4034a2d6 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
2017-05-03 03:07:30 -04:00
foreman 6c858567f2 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
2017-05-02 03:10:50 -04:00
Maneesh Gupta daaced71c8 Merge branch 'rocm-rel-1.5'
Change-Id: Ib2318f9c0d01a1bc8be2fcb172a3075e82851877
2017-05-02 09:06:49 +05:30
foreman 26720154d9 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
2017-05-01 15:54:18 -05:00
foreman 0af2c7043c 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
2017-05-01 15:54:18 -05:00
foreman d26b48851b 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
2017-04-29 03:11:52 -04:00
Evgeny Mankov 3e89277a9b [HIPIFY] Rename enumConstantDecl -> enumDecl
Reason: not to mix up with clang's enumConstantDecl, used for enum DeclRefExpr (enum constant).
2017-04-28 21:59:33 +03:00
Evgeny Mankov 85a32c3987 * [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).
2017-04-28 21:45:36 +03:00
Evgeny Mankov 5f76cf3098 [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.
2017-04-28 21:03:03 +03:00
Aditya Atluri 208bdbbcbb fixed hipFuncSetCacheConfig on rocm path
Change-Id: I937a3afbf115edc94a753a0beb2230ed60a6f021
2017-04-28 11:53:11 -05:00
foreman f35795b992 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
2017-04-28 03:11:31 -04:00
foreman 285475fccb 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
2017-04-27 19:53:00 -04:00
foreman 0a139b1670 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
2017-04-27 11:15:31 -04:00
Maneesh Gupta 8769845337 Merge "Merge branch 'amd-develop' into amd-master" into krussell/rocm-rel-1.5 2017-04-27 05:50:47 -04:00
foreman 75c7835453 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
2017-04-27 03:09:06 -04:00
foreman debd366bfd 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
2017-04-27 00:42:38 -04:00
foreman 5127770544 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
2017-04-27 00:42:38 -04:00
Aditya Atluri f368271872 fixed fast math expf and exp10f
Change-Id: I73963220f902efebb0a7404c5f8966dffb4c35ca
2017-04-26 19:01:10 -05:00
Aditya Atluri e91c35fde0 added hipFuncSetCacheConfig API for nvcc path
Change-Id: I87fae35bc0e10a0dca5ae1c5015fe5d9e52a1d0d
2017-04-26 18:56:57 -05:00
Maneesh Gupta 3d73e2fb3b Merge branch 'amd-develop' into amd-master
Change-Id: I51545bb66e9c9ff39bed86e2a8621e49a0e3f1c1
(cherry picked from commit cbb34eaf76)
2017-04-26 19:38:54 -04:00
foreman 425038afba 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
2017-04-26 18:06:50 -04:00
foreman 8e140c9485 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
2017-04-26 16:10:30 -04:00
foreman a1efbe4b5b 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
2017-04-26 16:10:30 -04:00
Maneesh Gupta ff5c90923e Merge branch 'amd-develop' into amd-master
Change-Id: I51545bb66e9c9ff39bed86e2a8621e49a0e3f1c1
2017-04-26 23:59:10 +05:30
Maneesh Gupta a5fb13bab3 Merge branch 'amd-master' into amd-develop 2017-04-26 23:55:13 +05:30
foreman d2ca5e309d 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
2017-04-26 12:23:11 -04:00
foreman 5164dd1244 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
2017-04-26 12:09:46 -04:00
foreman 681d0e22fb 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
2017-04-26 12:09:46 -04:00
foreman 2013eecf2e 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
2017-04-26 03:11:16 -04:00
foreman 6e6d58727c 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
2017-04-25 20:51:55 -04:00
foreman 915c8a0258 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
2017-04-25 03:08:23 -04:00
Sun, Peng 50daa408aa fix hip_complex.h header on NV path
Change-Id: Ia95d003ca1b284bab1c76723050e6b3b89178f65
2017-04-25 00:15:20 -05:00
Maneesh Gupta 1e404bfb14 Merge branch 'amd-develop' into amd-master
Change-Id: I312fb9d1181733ef5160d1e993e2ae57ced0f6b3
(cherry picked from commit 88fb807af0)
2017-04-25 00:01:30 -04:00
Ben Sander fbf28a8728 Add host offset checking 2017-04-24 22:30:54 -05:00
Ben Sander e7af4ef641 Refactor hipHostRegister test.
- Add more testing for offsets.
- Parse cmdline options and use --tests.
2017-04-24 22:30:54 -05:00
Ben Sander 5ba167b82b Refactor hipHostRegister to cover misaligned cases. 2017-04-24 22:30:54 -05:00
Ben Sander 3da8e94cbf 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.
2017-04-24 22:30:54 -05:00
Ben Sander d120b2dd12 Add test for non-page-aligned mem copies. 2017-04-24 22:30:54 -05:00
Ben Sander b44a3eefd1 Add corrected test for offsets 2017-04-24 22:30:54 -05:00