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

13197 Коммитов

Автор SHA1 Сообщение Дата
Evgeny Mankov 89703e4ea9 Merge pull request #1709 from emankov/hipify
[HIPIFY] CUDA 10.2 support (data types only)
2019-12-04 12:26:51 +03:00
Evgeny Mankov 33f81effb1 [HIPIFY] CUDA 10.2 support (data types only)
+ Both Driver API and RT API are supported and synced with each other
+ Update *.md docs and hipify-perl accordingly
2019-12-04 12:25:20 +03:00
foreman 7d544e807f P4 to Git Change 2040547 by chui@ocl-promo-incrementor on 2019/12/04 03:00:16
SWDEV-2 - Change OpenCL version number from 3052 to 3053.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2800 edit
2019-12-04 03:03:58 -05:00
Rahul Garg 261a04580f Fix hipMemcpyWithStream (#1707)
* Fix hipMemcpyWithStream
* Add a dtest for the same.
2019-12-04 11:56:23 +05:30
Aryan Salmanpour 8eaea4d114 [hip] refactoring hipExtLaunchMultiKernelMultiDevice API (#1698)
[Background] it was found that if lazy linking used for a library that calls hipExtLaunchMultiKernelMultiDevice API then this API can get the wrong program_state object for looking up device kernels leading to a "No device code available" error in this API.

To fix this issue, the API was refactored to be inline and get and pass the correct program_state to an internal hip API to request a multi-device kernel launch.
2019-12-04 11:50:51 +05:30
foreman 0814a17a4e P4 to Git Change 2039930 by chui@ocl-promo-incrementor on 2019/12/03 03:00:16
SWDEV-2 - Change OpenCL version number from 3051 to 3052.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2799 edit
2019-12-03 03:06:58 -05:00
foreman 401d75de56 P4 to Git Change 2039536 by jujiang@JJ-HIP on 2019/12/02 14:31:13
SWDEV-214490 - Update HIP RT for texture3D in HIP/PAL on Windows
	-Update ihipBindTexture

	http://ocltc.amd.com/reviews/r/18333/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#89 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#28 edit
2019-12-02 13:37:35 -06:00
foreman 3f566e4656 P4 to Git Change 2039367 by todli@todli-win-opencl-kv1 on 2019/12/02 10:17:56
SWDEV-211683 - 1.remove Renoir from GPU path device creation 2.adjust Renoir's postions in compiler and runtime

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/amuABI.h#25 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/amuABIMultiBinary.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#173 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#192 edit
2019-12-02 10:24:03 -05:00
Jenkins 3bb63fb84e Merge 'master' into 'amd-master'
Change-Id: I79c383bed37cf6278ddb733ddf3bf3661e3dad35
2019-12-02 01:27:13 -05:00
Maneesh Gupta 38e971b645 Revert "[packaging] Conform to debian package naming rules (#1647)" (#1688)
This reverts commit 5a03482690.
2019-12-01 14:47:43 +05:30
foreman 2c697a17e2 P4 to Git Change 2038998 by chui@ocl-promo-incrementor on 2019/11/30 03:00:15
SWDEV-2 - Change OpenCL version number from 3050 to 3051.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2798 edit
2019-11-30 03:06:48 -05:00
Evgeny Mankov da468e181f Merge pull request #1702 from emankov/hipify
[HIPIFY] Sync cudaError/CUresult between CUDA Driver API/CUDA RT API/HIP
2019-11-29 19:31:28 +03:00
Evgeny Mankov 636108aaa9 [HIPIFY] Sync cudaError/CUresult between CUDA Driver API/CUDA RT API/HIP
+ Update *.md docs and hipify-perl accordingly

[Reason]
Starting with CUDA 10.1 all error codes are merged between Driver and RT APIs

[ToDo]
Do the same merge in HIP API as there is no need in distinguishing return codes by API
2019-11-29 19:29:11 +03:00
foreman 384f95a8be P4 to Git Change 2038688 by jujiang@JJ-HIP on 2019/11/29 10:14:49
SWDEV-214490 - Update HIP RT for texture3D in HIP/PAL on Windows
	- Update function hipMemcpy3D for Texture Array
	- Add  hipArrayCubemap support in hipMalloc3DArray

	http://ocltc.amd.com/reviews/r/18328/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#88 edit
2019-11-29 10:17:28 -05:00
foreman b39b9582d9 P4 to Git Change 2038561 by chui@ocl-promo-incrementor on 2019/11/29 03:00:14
SWDEV-2 - Change OpenCL version number from 3049 to 3050.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2797 edit
2019-11-29 03:03:52 -05:00
Maneesh Gupta 4c92bd50c4 Revert changes for atomic FADD support when address is in LDS (#1701)
This reverts PR #1591 and follow-on PR #1695
2019-11-29 11:58:12 +05:30
foreman 3de904a3f3 P4 to Git Change 2038311 by vsytchen@vsytchen-ocl-win10-2 on 2019/11/28 15:39:44
SWDEV-193973 - Enable Navi21 for mainline builds

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbedefs#59 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#66 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#178 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#107 edit
2019-11-28 15:41:22 -05:00
Siu Chi Chan d33975d6e8 add error checking for code object loading 2019-11-28 14:00:48 -05:00
Alex Voicu 17a4780dc6 Uniform is_shared query. (#1695) 2019-11-28 13:39:05 +05:30
foreman fc6a848e84 P4 to Git Change 2038037 by chui@ocl-promo-incrementor on 2019/11/28 03:00:13
SWDEV-2 - Change OpenCL version number from 3048 to 3049.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2796 edit
2019-11-28 03:02:11 -05:00
foreman 7f36a775c8 P4 to Git Change 2037665 by jatang@jatang_win_pal_lc on 2019/11/27 14:04:36
SWDEV-1 - Fix cmake build.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/os/os_posix.cpp#48 edit
2019-11-27 14:09:12 -05:00
foreman 1d9815dd75 P4 to Git Change 2037394 by chui@ocl-promo-incrementor on 2019/11/27 03:00:13
SWDEV-2 - Change OpenCL version number from 3047 to 3048.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2795 edit
2019-11-27 03:02:03 -05:00
foreman 416f273e94 P4 to Git Change 2037301 by ssahasra@ssahasra-hip-vdi on 2019/11/26 22:42:25
SWDEV-204782 - introduce hostcall

	Hostcall is a service that allows a kernel to submit requests to the
	host using shared buffers, and block until a response is received. This
	will eventually replace the shared buffer currently used for printf, and
	repurposes the same hidden kernel argument.

	When the runtime launches a kernel that requires the hostcall service it
	performs the following actions:
	- Launch a hostcall listener thread if it is not already running.
	- Locate the hostcall buffer for the corresponding hardware queue, or
	  create a new one.
	- Register the new hostcall buffer with the listener thread.
	- Set the hostcall buffer pointer as an implicit argument to the kernel.

Affected files ...

... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/Makefile#21 edit
... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/build/Makefile.hip_tests#31 edit
... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/scripts/hip_hostcall_tests.txt#1 add
... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/scripts/run_all_tests.sh#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#143 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#45 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rochostcall.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rochostcall.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#92 edit
2019-11-26 22:44:29 -05:00
foreman d2570e2254 P4 to Git Change 2037147 by kjayapra@1_HIPWS_LNX1_PAL on 2019/11/26 16:58:07
SWDEV-144570 - Adding hipMemcpyWithStream API

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#36 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#34 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#87 edit
2019-11-26 17:03:41 -05:00
foreman 904ccfebc6 P4 to Git Change 2036984 by vsytchen@vsytchen-ocl-win10-2 on 2019/11/26 13:22:26
SWDEV-2036435 - Fix p4 build

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#72 edit
2019-11-26 12:30:05 -06:00
foreman 9d20a77b81 P4 to Git Change 2036695 by chui@ocl-promo-incrementor on 2019/11/26 03:00:13
SWDEV-2 - Change OpenCL version number from 3046 to 3047.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2794 edit
2019-11-26 03:06:49 -05:00
Jeff Daily 6df73e1f12 fix hipMempcy precondition, test for zero size first (#1697) 2019-11-25 19:03:03 -08:00
foreman f6db6a2209 P4 to Git Change 2036435 by skudchad@skudchad_test2_win_opencl on 2019/11/25 18:48:27
SWDEV-203814 - HIPRTC Inprocess runtime changes

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#71 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#37 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#108 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#106 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#50 edit
2019-11-25 17:55:47 -06:00
Anusha Godavarthy Surya bc79c5636b replace array designator C99 2019-11-25 16:51:49 +05:30
foreman e2cdf665e4 P4 to Git Change 2035670 by chui@ocl-promo-incrementor on 2019/11/23 03:00:11
SWDEV-2 - Change OpenCL version number from 3045 to 3046.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2793 edit
2019-11-23 03:08:48 -05:00
foreman e7745c6d1e P4 to Git Change 2035631 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/22 17:52:20
SWDEV-213526 - pytorch tests fail with hipErrorOutofMemory
	There's a bug in ROCr when loading a lot of kernels and not syncing
	So for now, if an allocation fails, sync devices and retry before
	returning hipErrorOutOfMemory error.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#86 edit
2019-11-22 17:56:07 -05:00
foreman dd5459c7a1 P4 to Git Change 2035516 by gandryey@gera-hip-lnx on 2019/11/22 15:51:48
SWDEV-79445 - OCL generic changes and code clean-up
	- Don't sync on the scratch buffer if the executed kernel is unchanged, since the number of scratch regs remains the same

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#158 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#65 edit
2019-11-22 15:53:12 -05:00
foreman db74302fe3 P4 to Git Change 2035286 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/22 11:19:57
SWDEV-145570 - Revering CL 2033170

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#52 edit
2019-11-22 11:29:49 -05:00
foreman cabcfb5f37 P4 to Git Change 2035092 by chui@ocl-promo-incrementor on 2019/11/22 03:00:22
SWDEV-2 - Change OpenCL version number from 3044 to 3045.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2792 edit
2019-11-22 03:07:12 -05:00
Alex Voicu 306d50291e Unary operators were too restrictive in the type of their argument. (#1683) 2019-11-22 07:54:53 +05:30
Shyam Saladi 562336e733 [HIPIFY] fix typo (#1681) 2019-11-22 07:54:37 +05:30
ansurya e5fc5aa41c Fix rocBLAS compilation failure (#1677)
SWDEV-212749:
o Recent changes to “add support for extended launch” require hip_runtime.h to be include in hip_ext.h
o Order in which external applications include hip_hcc.h/hip_runtime.h causes compilation failure
2019-11-22 07:54:17 +05:30
Alex Voicu 2ed3a0873c Use native support for atomic FADD when address is in LDS (#1591) 2019-11-22 07:53:48 +05:30
foreman 6cabc4898d P4 to Git Change 2034910 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/21 19:28:10
SWDEV-145570 - Revering CL#2033779 for now.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#48 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#49 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#70 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#36 edit
2019-11-21 19:33:05 -05:00
foreman 79baf8255f P4 to Git Change 2034910 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/21 19:28:10
SWDEV-145570 - Revering CL#2033779 for now.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#48 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#49 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#70 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#36 edit
2019-11-21 19:33:05 -05:00
foreman d033b0eee9 P4 to Git Change 2034784 by gandryey@gera-hip-lnx on 2019/11/21 16:31:24
SWDEV-79445 - OCL generic changes and code clean-up
	- Enable WGP mode in ROCr GFX10 by default
	- Read GPU_ENABLE_WAVE32_MODE environment variable to control wave32/64 on ROCr

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#142 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#46 edit
2019-11-21 16:33:51 -05:00
foreman e4d5473068 P4 to Git Change 2034397 by chui@ocl-promo-incrementor on 2019/11/21 03:00:11
SWDEV-2 - Change OpenCL version number from 3043 to 3044.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2791 edit
2019-11-21 03:02:57 -05:00
satyanveshd d4dde7a27d fixed directed tests fail when hcc bumped to 3.0 (#1678)
Handled the HCC version check appropriately as few of the directed tests (SWDEV-212161) were failing when hcc was bumped to 3.0.
2019-11-20 21:37:52 +05:30
Alex Voicu 022ac3cb0a General sync memcpy improvements. Add hipMemcpyWithStream (#1673)
* General sync memcpy improvements. Add `hipMemcpyWithStream`

* Update hip_memory.cpp
2019-11-20 21:36:37 +05:30
Rahul Garg 13c2a31d7e Update error codes for hipGetDevice for doxygen and move up null check (#1668)
* [docs] Update error codes for hipGetDevice

* Move up out ptr check
2019-11-20 21:35:27 +05:30
Paul Fultz II 57b1b03261 Fix helper header when using c++17 (#1666)
This will fix issue #1621. It also adds tests for is_callable with c++11, c++14, and c++17.

The fallback implementation was completely broken so I rewrote it so it pass the tests as well. This should be used instead of PR #1631.
2019-11-20 21:33:42 +05:30
Alex Voicu c383f20691 Extend vector type capabilities and add tests to reflect it. (#1656) 2019-11-20 21:32:32 +05:30
foreman 06167b8112 P4 to Git Change 2033779 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/20 07:17:56
SWDEV-144570 - Update function global during hipModuleLoad.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#47 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#48 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#69 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#35 edit
2019-11-20 07:24:20 -05:00
foreman 07d13a34d9 P4 to Git Change 2033779 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/20 07:17:56
SWDEV-144570 - Update function global during hipModuleLoad.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#47 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#48 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#69 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#35 edit
2019-11-20 07:24:20 -05:00
foreman cd6595375b P4 to Git Change 2033674 by chui@ocl-promo-incrementor on 2019/11/20 03:00:10
SWDEV-2 - Change OpenCL version number from 3042 to 3043.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2790 edit
2019-11-20 03:07:23 -05:00