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

13197 Коммитов

Автор SHA1 Сообщение Дата
Evgeny Mankov ae9f14ef9c [HIP] [HIPIFY] [FIX] cuModuleLoadDataEx -> hipModuleLoadDataEx
https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/issues/81

1.	Do not use JIT options on HCC path, call hipModuleLoadData instead.
2.	NVCC path is unchanged, to call cuModuleLoadDataEx with all options.
3.	Get rid of manual hipification, based on #ifdef #else for NVCC/HIP.
4.	Update documentation accordingly.
2017-05-19 17:22:14 +03:00
foreman 738528f6f3 P4 to Git Change 1411633 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/19 03:00:04
SWDEV-2 - Change OpenCL version number from 2423 to 2424.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2171 edit
2017-05-19 03:07:36 -04:00
foreman 6d7fb53d4a P4 to Git Change 1411361 by gandryey@gera-lnx-rcf-lc on 2017/05/18 14:22:45
SWDEV-121873 - [ROCm CQE][Vega10][QR] Observed Aborted (core dumped) while running clinfo due to CL#1410373
	- Fix device handle default initialization

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/prodevice.hpp#2 edit
2017-05-18 14:47:03 -04:00
Aditya Atluri 0433a2e608 fixed vector type issues by reverting to old code, changed __half2 to map to vector types in llvm
Change-Id: I7317408c25e8c1a0c02a346042c9137e160c8bbd
2017-05-18 10:51:07 -05:00
foreman fabcd11161 P4 to Git Change 1411057 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/18 03:00:04
SWDEV-2 - Change OpenCL version number from 2422 to 2423.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2170 edit
2017-05-18 03:04:34 -04:00
foreman 842f311464 P4 to Git Change 1410993 by lmoriche@lmoriche_opencl_dev2 on 2017/05/17 22:25:50
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Make it possible to use cl2.hpp

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl2.hpp#2 edit
... //depot/stg/opencl/drivers/opencl/tools/clinfo/clinfo.cpp#3 edit
2017-05-17 22:31:48 -04:00
foreman 757432840f P4 to Git Change 1410861 by gandryey@gera-lnx-rcf-lc on 2017/05/17 17:03:55
SWDEV-120180 - [amdgpu-pro] OpenCL support for SSG
	Correct define name

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#20 edit
2017-05-17 18:52:41 -04:00
foreman 94759e212e P4 to Git Change 1410787 by gandryey@gera-w8 on 2017/05/17 15:15:22
SWDEV-120180 - [amdgpu-pro] OpenCL support for SSG
	- Protect amdgpu-pro headers with the define for easier open source integration

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#52 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#21 edit
2017-05-17 15:49:02 -04:00
foreman 928d2bcf66 P4 to Git Change 1410684 by gandryey@gera-w8 on 2017/05/17 13:00:21
SWDEV-120180 - [amdgpu-pro] OpenCL support for SSG
	Fix open source build

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#19 edit
2017-05-17 13:09:07 -04:00
foreman 83937abeae P4 to Git Change 1410638 by lmoriche@lmoriche_palamida on 2017/05/17 11:34:07
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Add FindROCR.cmake, and use find_package() to locate the ROCR

Affected files ...

... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCR.cmake#2 edit
2017-05-17 11:50:44 -04:00
foreman 8f8d05040f P4 to Git Change 1410629 by lmoriche@lmoriche_palamida on 2017/05/17 11:27:06
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Add FindROCR.cmake, and use find_package() to locate the ROCR

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#8 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#5 edit
... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCR.cmake#1 add
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#3 edit
2017-05-17 11:40:24 -04:00
foreman 85b83e06cf P4 to Git Change 1410629 by lmoriche@lmoriche_palamida on 2017/05/17 11:27:06
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Add FindROCR.cmake, and use find_package() to locate the ROCR

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#8 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#5 edit
... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCR.cmake#1 add
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#3 edit
2017-05-17 11:40:24 -04:00
foreman c84fa0811c P4 to Git Change 1410625 by gandryey@gera-w8 on 2017/05/17 11:20:57
SWDEV-79445 - OCL generic changes and code clean-up
	Remove unused wait() call

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#20 edit
2017-05-17 11:29:38 -04:00
Ben Sander ee37a31799 Return precise address for hipHostGetDevicePointer. 2017-05-17 07:36:06 -05:00
foreman 540e578066 P4 to Git Change 1410518 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/17 03:00:04
SWDEV-2 - Change OpenCL version number from 2421 to 2422.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2169 edit
2017-05-17 07:14:00 -04:00
Aditya Atluri 93fa174900 changed vector types to make sure it generate proper llvm vector types
Change-Id: I6c4616dae137dc4eac35e5827dc5b7f3251e0247
2017-05-16 21:35:40 -05:00
Ben Sander 848d77ebb5 Make hipMultiThreadStreams1 test a little harsher.
Fail faster if synchronization rules are violated.
Run vectorAddRevers to read last elements of array first - if the
vector add kernel starts before preceding copy finishes we
will read stale data and flag the error.

Increase default array sizes, so synchronization errors more easily
exposed.
2017-05-16 19:04:25 -05:00
Ben Sander fad9104b5f Fix HIP_TRACE_API so kernel launch only printed when requested. 2017-05-16 19:04:25 -05:00
Ben Sander 8bc6ee5932 Add initial HIP_SYNC_NULL_STREAM=0 mode.
This eliminates host-synchronization for null stream.  Instead, the
null-stream uses GPU-side events to wait for other streams.
Default is OFF pending additional testing.

Add enhanced null-stream test.

Also refine HIP_TRACE_API.
2017-05-16 19:04:25 -05:00
Ben Sander 5d2072aba1 Update tests README 2017-05-16 19:04:25 -05:00
Ben Sander a5a12942b2 Doc update - split hip_debugging.md into separate file. 2017-05-16 19:04:25 -05:00
Ben Sander 61c8633113 split debugging into separate .md file 2017-05-16 19:04:25 -05:00
Ben Sander 7e7ba5027f Add HIP_TRACE_API=4. Only display memory allocation/free apis. 2017-05-16 19:04:25 -05:00
foreman 741fd33189 P4 to Git Change 1410373 by gandryey@gera-w8 on 2017/05/16 17:16:52
SWDEV-120180 - [amdgpu-pro] OpenCL support for SSG
	- Add initial support of DGMA memory under ROCr backend.
	 - The implementation requires amdgpu-pro stack initialization and memory allocation.
	 - An interop with HSA device is created for ROCr access

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/Makefile#10 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#153 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#285 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#351 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/lnxheaders.h#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/prodevice.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/prodevice.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/prodriver.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#101 edit
... //depot/stg/opencl/drivers/opencl/runtime/runtimedefs#41 edit
2017-05-16 17:22:59 -04:00
foreman 0da70b03de P4 to Git Change 1410373 by gandryey@gera-w8 on 2017/05/16 17:16:52
SWDEV-120180 - [amdgpu-pro] OpenCL support for SSG
	- Add initial support of DGMA memory under ROCr backend.
	 - The implementation requires amdgpu-pro stack initialization and memory allocation.
	 - An interop with HSA device is created for ROCr access

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/Makefile#10 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#153 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#285 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#351 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/lnxheaders.h#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/prodevice.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/prodevice.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/prodriver.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#101 edit
... //depot/stg/opencl/drivers/opencl/runtime/runtimedefs#41 edit
2017-05-16 17:22:59 -04:00
foreman e6dd2db23d P4 to Git Change 1410307 by lmoriche@lmoriche_palamida on 2017/05/16 15:09:08
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Fix the build breakage caused by the latest changes from device-libs.

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#7 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_platform.h#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#4 edit
2017-05-16 16:06:16 -04:00
foreman df45033047 P4 to Git Change 1410307 by lmoriche@lmoriche_palamida on 2017/05/16 15:09:08
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Fix the build breakage caused by the latest changes from device-libs.

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#7 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_platform.h#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#4 edit
2017-05-16 16:06:16 -04:00
foreman a6fb2b1527 P4 to Git Change 1410282 by skudchad@skudchad_test_win_opencl2 on 2017/05/16 14:43:51
SWDEV-115303 - [Vega 10] SDITransferTest not functional in P2P OGL/OCL mode
	 - Runtime backend changes to implement marker submit\wait functionality and to make the SDI surface resident

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/12776/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#49 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#22 edit
2017-05-16 15:54:59 -04:00
emankov f6a0cb3afc [HIPIFY] *.inl extension support for batch processing 2017-05-16 19:52:39 +03:00
foreman 8b44cced55 P4 to Git Change 1410153 by wchau@wchau_OCL_boltzmann on 2017/05/16 11:07:21
SWDEV-121587 - [OCL] Segmentation fault when program is used without built first.  Fix the issue by adding sanity check for the symbol table before using it.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#87 edit
2017-05-16 11:22:14 -04:00
Evgeny Mankov 221faeb916 [HIPIFY] cudaMallocPitch -> hipMallocPitch 2017-05-16 18:21:25 +03:00
foreman c4024bac0b P4 to Git Change 1410014 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/16 03:00:03
SWDEV-2 - Change OpenCL version number from 2420 to 2421.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2168 edit
2017-05-16 03:11:22 -04:00
Rahul Garg d22b731f95 Added hipMallocPitch on HIP/NVCC path
Change-Id: Ie3ba7d3f95acac23805efa919531043b350a3f21
2017-05-16 07:15:13 +05:30
foreman 34c374b287 P4 to Git Change 1409878 by lmoriche@lmoriche_palamida on 2017/05/15 19:30:18
SWDEV-121585 - [OCL-LC-ROCm] Merge GitHub pull requests
	- Merged https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/pull/4

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#55 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocbinary.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/os/os_win32.cpp#48 edit
2017-05-15 19:42:30 -04:00
foreman 0c526a2e0d P4 to Git Change 1409878 by lmoriche@lmoriche_palamida on 2017/05/15 19:30:18
SWDEV-121585 - [OCL-LC-ROCm] Merge GitHub pull requests
	- Merged https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/pull/4

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#55 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocbinary.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/os/os_win32.cpp#48 edit
2017-05-15 19:42:30 -04:00
foreman 1d5baa6862 P4 to Git Change 1409664 by skudchad@skudchad_test_win_opencl2 on 2017/05/15 13:43:01
SWDEV-121337 - [Gfx10][SW Emulation] - Support for SW emulation path for Compute
	- Makefile changes for passing DTIF build flag
	- Disable SVM support when emulating.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/12755/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#46 edit
2017-05-15 13:48:39 -04:00
Evgeny Mankov 181d3e2bae [HIPIFY] CUDA Driver API: Primary Context Management support. 2017-05-15 15:35:52 +03:00
foreman 7a2a73f05a P4 to Git Change 1409348 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/13 03:00:03
SWDEV-2 - Change OpenCL version number from 2419 to 2420.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2167 edit
2017-05-13 03:14:28 -04:00
Aditya Atluri a6dc00f167 added gfx900 to hipDeviceProp_t
Change-Id: I49e7a32f218926fd55f1c94c5dc2366d6c8ac4ca
2017-05-12 21:43:34 -05:00
Ben Sander c7c62dd022 Remove old USE_ switches no longer needed. 2017-05-12 16:06:03 -05:00
Ben Sander 2c2625cb9e Add hipEventDisableSystemRelease flag. 2017-05-12 16:06:03 -05:00
Evgeny Mankov aa52b94be1 [HIPIFY] Fix string routines.
Some Clang tooling functions return std::string, some return StringRef. Assigning of returning std::string to StringRef variables leads to garbage in it.
DEBUG build is always affected.
2017-05-11 21:50:36 +03:00
foreman e7659e8e45 P4 to Git Change 1408404 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/11 03:00:04
SWDEV-2 - Change OpenCL version number from 2418 to 2419.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2166 edit
2017-05-11 03:08:30 -04:00
Ben Sander ff9bed6535 hipHostMalloc allocation are mapped to all devices by default.
Support hipHostMallocPortable flag.
Default flags are hipHostMallocPortable | hipHostMallocMapped.

Also:
-refactor tests to move addCount and addCountReverse into HipTest
namespace.
-test multi-GPU host memory.
2017-05-10 17:34:36 -05:00
Ben Sander ae9fdf9bc1 Fix hipStreamWaitEvent for single GPU. 2017-05-10 13:23:49 -05:00
foreman df01201857 P4 to Git Change 1407897 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/10 03:00:04
SWDEV-2 - Change OpenCL version number from 2417 to 2418.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2165 edit
2017-05-10 03:08:59 -04:00
foreman 09c3bd377c P4 to Git Change 1407812 by lmoriche@lmoriche_palamida on 2017/05/09 19:05:59
SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime
	- Add a linker script to version the symbols

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#4 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/amdocl.map#3 add
2017-05-09 19:11:37 -04:00
Aditya Atluri 14930dc594 added guard against hip_runtime.h so that non-hcc compilers can use it
Change-Id: I3d68deda9ce8a5956e21e15a69e549d6c21e3e39
2017-05-09 10:14:16 -05:00
foreman dc779392ba P4 to Git Change 1407340 by johtaylo@johtaylo-jtincrementor-increment on 2017/05/09 03:00:04
SWDEV-2 - Change OpenCL version number from 2416 to 2417.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2164 edit
2017-05-09 03:12:15 -04:00
Ben Sander 9a026b62a8 Fix some typos, add additional guidance for -BSymbolic 2017-05-05 17:29:04 -05:00