Commit-Graf

12735 Incheckningar

Upphovsman SHA1 Meddelande Datum
foreman f6180af19b P4 to Git Change 1702079 by jujiang@JJ-OCL-w8 on 2018/11/02 16:01:11
SWDEV-155310 - Request for OpenCL extension function to set stable pstate

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.h#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#324 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#600 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#170 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#115 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#102 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#32 edit


[ROCm/clr commit: 1b6dee43bd]
2018-11-02 16:09:59 -04:00
foreman a3332a714e P4 to Git Change 1702079 by jujiang@JJ-OCL-w8 on 2018/11/02 16:01:11
SWDEV-155310 - Request for OpenCL extension function to set stable pstate

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.h#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#324 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#600 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#170 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#115 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#102 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#32 edit


[ROCm/clr commit: 1a7008f29b]
2018-11-02 16:09:59 -04:00
foreman b441984431 P4 to Git Change 1701615 by chui@ocl-promo-incrementor on 2018/11/02 03:00:03
SWDEV-2 - Change OpenCL version number from 2767 to 2768.

Affected files ...

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


[ROCm/clr commit: 4801cb045b]
2018-11-02 03:10:48 -04:00
Alex Voicu e3c9869fbe Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
[ROCm/clr commit: 1c525d7222]
2018-11-01 23:17:27 +00:00
foreman a533dbcf31 P4 to Git Change 1701409 by gandryey@gera-w8 on 2018/11/01 17:43:16
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove obsolete settings
	- Simplify some logic when runtime checks dimension override in the dispatch critical path

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_execute.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#233 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#323 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#599 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#333 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#361 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#103 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#425 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#184 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#39 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#300 edit


[ROCm/clr commit: 9a9b44fa32]
2018-11-01 17:49:35 -04:00
foreman 3bc6292d7e P4 to Git Change 1701409 by gandryey@gera-w8 on 2018/11/01 17:43:16
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove obsolete settings
	- Simplify some logic when runtime checks dimension override in the dispatch critical path

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_execute.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#233 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#323 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#599 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#333 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#361 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#103 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#425 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#184 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#39 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#300 edit


[ROCm/clr commit: 21f6e4337a]
2018-11-01 17:49:35 -04:00
Siu Chi Chan e26a728173 Move the global arrays for hip malloc/free
from a header into a source file such that
there's only an unique copy in an executable
and prevent wasting static memory on the host

Change-Id: Id5b62766f77809c8d7b47892cb7149c490dcbdb9


[ROCm/clr commit: cdd0109e70]
2018-11-01 16:20:35 -04:00
Evgeny Mankov 77835ded3f [HIPIFY][doc] Update README.md
+ Split Linux and Windows sections
+ Rewrite Testing section


[ROCm/clr commit: 83d1b50615]
2018-11-01 19:11:40 +03:00
Evgeny Mankov 7b244965b6 [HIPIFY][fix] Fix typo and functions' string arguments
+ Fix typo with missing comma in counterNames array
+ Change std::string argument to const std::string& argument in all functions


[ROCm/clr commit: 48abb4a36b]
2018-11-01 16:57:57 +03:00
foreman ca9e03e1b9 P4 to Git Change 1700865 by chui@ocl-promo-incrementor on 2018/11/01 03:00:03
SWDEV-2 - Change OpenCL version number from 2766 to 2767.

Affected files ...

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


[ROCm/clr commit: 320c9a6375]
2018-11-01 03:04:36 -04:00
Jeff Daily 34c5d69f7c typedef struct hipFuncAttributes now C compatible.
Fixes #591.
Fixes #694.


[ROCm/clr commit: 6eac038694]
2018-10-31 14:12:45 +05:30
Maneesh Gupta 7052a66935 Merge pull request #733 from ex-rzr/fix_array_alloc_size
Fix allocation size of arrays with multiple and/or non-32-bit channels

[ROCm/clr commit: a75d4c0ecc]
2018-10-31 14:08:58 +05:30
Maneesh Gupta 130edf2c43 Merge pull request #714 from aaronenyeshi/remove-static-hip-device
Remove libhip_device.a static library

[ROCm/clr commit: c7f2198c6e]
2018-10-31 14:08:29 +05:30
Maneesh Gupta 58aec2b859 Merge pull request #713 from scchan/master-hcc_early_finalize_support
Support more than one device code blobs in a single .kernel section

[ROCm/clr commit: 8f667984af]
2018-10-31 14:04:06 +05:30
Alex Voicu 1c6b92bbfb Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
[ROCm/clr commit: 000766850d]
2018-10-30 23:34:46 +00:00
Alex Voicu 58c5dedc16 If we've already seen a __global__ function we do not need to re-parse
[ROCm/clr commit: 1621deee71]
2018-10-30 23:34:27 +00:00
Rahul Garg 8856b89b21 Fixes global symbols tracking in hip_module
[ROCm/clr commit: 592efa017f]
2018-10-31 03:22:38 +05:30
Evgeny Mankov 5150bb398e Merge pull request #741 from emankov/master
[HIPIFY][fix][#739] Fix garbage after replacements

[ROCm/clr commit: ec68fda25a]
2018-10-30 19:37:19 +03:00
Evgeny Mankov 24bd6d2925 [HIPIFY][fix][#739] Fix garbage after replacements
[Issue] https://github.com/ROCm-Developer-Tools/HIP/issues/739
[Resolution] Always use an std::string not a clang::StringRef for replacement

P.S. Occurred only on Linux, on Windows works fine.


[ROCm/clr commit: 2ab8e92195]
2018-10-30 19:35:59 +03:00
Evgeny Mankov c5db5e4c4a Merge pull request #740 from emankov/master
[HIPIFY][fix] Return back cudaDeviceProp's struct field warpSize to hipWarpSize mapping

[ROCm/clr commit: b2e6ce7be0]
2018-10-30 15:55:17 +03:00
Evgeny Mankov 4ae4f1073f [HIPIFY][fix] Return back cudaDeviceProp's struct field warpSize to hipWarpSize mapping.
[ROCm/clr commit: 3489fe9ca1]
2018-10-30 15:53:00 +03:00
Maneesh Gupta 73c69744d4 Merge pull request #726 from ROCm-Developer-Tools/feature_minimal_changes_for_hc_next
hipLaunchKernel, hipLaunchParm are deprecated, and shall be removed.

[ROCm/clr commit: a36889113c]
2018-10-30 09:20:39 +05:30
Alex Voicu 8599d053b4 Handle the very confusing dual encoding of the symbol name.
[ROCm/clr commit: 1fe33b4738]
2018-10-30 01:55:09 +00:00
Evgeny Mankov 8c98204b9c [HIPIFY] Modify HIP types to conform to CUDA's ones
[ROCm/clr commit: 2af2827a05]
2018-10-29 20:51:25 +03:00
Alex Voicu b6ded4d70a Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
[ROCm/clr commit: 0f911d7727]
2018-10-29 15:41:44 +00:00
Evgeny Mankov 4e7e8b7704 [HIPIFY] CUDA Runtime API data types total revise
+ for all CUDA versions up to 10.0
+ add missing types
+ fix typos
+ sync with HIP
+ sync with CUDA Driver API
+ update CUDA_Runtime_API_functions_supported_by_HIP.md
+ update CUDA Driver API map accordingly
+ update CUDA_Driver_API_functions_supported_by_HIP.md
+ formatting, annotating


[ROCm/clr commit: 41bc184e90]
2018-10-29 17:13:00 +03:00
Anton Gorenko 600e5cdb58 Fix allocation size of arrays with multiple and/or non-32-bit channels
hipMallocArray and hipMalloc3DArray must use sum of bits
of all components.


[ROCm/clr commit: 6e6297f3cd]
2018-10-29 18:12:00 +06:00
Alex Voicu 44f0ee9cff Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
[ROCm/clr commit: b68caf7653]
2018-10-28 17:02:10 +00:00
Alex Voicu 1ec78f6d67 Rely on code object metadat for kernarg arguments alignof and sizeof.
[ROCm/clr commit: 299b9d1382]
2018-10-28 17:01:00 +00:00
foreman 0cc2656443 P4 to Git Change 1624840 by chui@ocl-promo-incrementor on 2018/10/27 03:00:36
SWDEV-2 - Change OpenCL version number from 2765 to 2766.

Affected files ...

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


[ROCm/clr commit: 120cb6f34a]
2018-10-27 03:16:03 -04:00
foreman 4a59ff1a4e P4 to Git Change 1624807 by gandryey@gera-w8 on 2018/10/26 18:35:39
SWDEV-167970 - Ethereum mining (EthDcrMiner64.exe) App crashed while running Claymore Mining over VI,AI ,CI ASIC families
	- Fix a regression after CL#1608975. Use amdil complib instance to query the binary options. The logic in the abstraction layer attempts to validate the binary options and for some reason Ethereum binary isn't compatible with the HSAIL complib instance. It's a workaround for now, since the app doesn't allow debugger and printf debugging is quite time consuming.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#322 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#169 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#97 edit


[ROCm/clr commit: e8ca159b62]
2018-10-26 18:44:00 -04:00
Yaxun Sam Liu cc101b22ed Add HIP_DUMP_CODE_OBJECT
[ROCm/clr commit: 0027a54d8b]
2018-10-26 14:14:00 -04:00
Yaxun Sam Liu 4012f63d87 Adding checks and debug output for fat binary for hip-clang
[ROCm/clr commit: da6c5c152e]
2018-10-26 14:13:12 -04:00
foreman b606210d59 P4 to Git Change 1624606 by asalmanp@asalmanp-ocl-stg on 2018/10/26 13:57:59
SWDEV-132899 - [OCL] use the new "numAvailableCus" property from PAL which has the correct number of total available CUs

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/16060/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#114 edit


[ROCm/clr commit: a4c1b1b9d3]
2018-10-26 14:08:34 -04:00
Evgeny Mankov 8c3f9ebac6 [HIPIFY][doc] Readme update
Clang 7.0.0 release has a known bug https://bugs.llvm.org/show_bug.cgi?id=36384, thus 7.0.0 is unstable release for Linux and Windows.
Last stable and tested LLVM+Clang release is 6.0.1.


[ROCm/clr commit: 5ab9c4bbca]
2018-10-26 15:01:58 +03:00
Aaron Enye Shi 1c05b06bcd Remove libhip_device.a static library
Move remaining function definitions from device_util.cpp to hip_runtime.h header. We can now remove the static library completely as device_util.cpp was the last file part of target hip::hip_device .


[ROCm/clr commit: ba43d1ce1b]
2018-10-25 19:52:35 +00:00
Evgeny Mankov 587ba6f1d4 [HIPIFY][cmake][fix] Mark all target_link_libraries with PRIVATE keyword
[Reason]
Avoid cmake error occurred when mixing signatures with AddLLVM.cmake

[Error]
CMake Error at CMakeLists.txt:26 (target_link_libraries): The keyword signature for target_link_libraries has already been used with the target "hipify-clang".
All uses of target_link_libraries with a target must be either all-keyword or all-plain.

Error occurred only on Linux and LLVM 7.0.0


[ROCm/clr commit: b244d1fc99]
2018-10-25 17:09:18 +03:00
Alex Voicu 5a6601c62a hipLaunchKernel, hipLaunchParm are deprecated, and shall be removed.
[ROCm/clr commit: a743939900]
2018-10-25 13:32:17 +01:00
foreman 83e01d7754 P4 to Git Change 1623749 by chui@ocl-promo-incrementor on 2018/10/25 03:00:37
SWDEV-2 - Change OpenCL version number from 2764 to 2765.

Affected files ...

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


[ROCm/clr commit: a7b8e9bf47]
2018-10-25 03:04:33 -04:00
Maneesh Gupta bd0e1c87b7 Merge pull request #723 from mangupta/fix_double_shfl
Fix logic for double variants of __shfl*

[ROCm/clr commit: 05beeec84d]
2018-10-25 06:01:38 +05:30
Maneesh Gupta 42a8d09f51 Merge pull request #720 from mangupta/make_rocm19_usable_again
Make HIP functional again with HCC from ROCm 1.9.x

[ROCm/clr commit: cd53504215]
2018-10-25 06:01:27 +05:30
Maneesh Gupta bf119ef4e8 Merge pull request #716 from yxsamliu/gfx906
Let hipcc handle gfx906 for hip-clang

[ROCm/clr commit: df02a8ef5f]
2018-10-25 06:01:16 +05:30
foreman 4842e57b41 P4 to Git Change 1623601 by skudchad@skudchad_test2_win_opencl on 2018/10/24 17:52:57
SWDEV-145570 - [HIP] Refactor hipStreamAddCallback

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#15 edit


[ROCm/clr commit: 5a126bf678]
2018-10-24 18:00:42 -04:00
Maneesh Gupta b6f6734285 Fix logic for double variants of __shfl*
Change-Id: I604f00b54cf4bd9c5f26ca6fa680fca5e9629417


[ROCm/clr commit: 7b6d232672]
2018-10-24 12:39:09 +05:30
Maneesh Gupta 127f7d0320 Make HIP functional again with HCC from ROCm 1.9.x
Change-Id: I214acdfd0b79dcf783993e44fe31baee64fd4dc3


[ROCm/clr commit: b01ac26948]
2018-10-24 10:41:56 +05:30
Qianfeng Zhang b12c16f72b Make correct checking of the returned hipDeviceptr_t from read_global_description()
[ROCm/clr commit: 443698ce00]
2018-10-23 21:13:11 +08:00
foreman 2b846773e2 P4 to Git Change 1622558 by chui@ocl-promo-incrementor on 2018/10/23 03:00:35
SWDEV-2 - Change OpenCL version number from 2763 to 2764.

Affected files ...

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


[ROCm/clr commit: bb7f9839e7]
2018-10-23 03:08:10 -04:00
foreman 105c5ad3fd P4 to Git Change 1622418 by gandryey@gera-w8 on 2018/10/22 17:03:57
SWDEV-79445 - OCL generic changes and code clean-up
	- Don't disable the trace if start occurred on a queue, which didn't generate a preparation. That should fix random timeouts and still keep trace commands in order.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.cpp#10 edit


[ROCm/clr commit: 697488de5b]
2018-10-22 17:15:40 -04:00
Evgeny Mankov 26509d1f68 [HIPIFY] Split CUDA2HIP map into a number of maps based on API type
[Reasons]
+ Simplify the support
+ Optimize compilation and code generation time

[Additionally]
+ Update minimum required version of cmake
+ Fix MSVC compile options force update


[ROCm/clr commit: 75972cb51d]
2018-10-23 00:00:10 +03:00
foreman 15c7dadf56 P4 to Git Change 1622391 by gandryey@gera-w8 on 2018/10/22 16:33:17
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove detection of the global memory usage, based on the names of variables

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#82 edit


[ROCm/clr commit: 8a8f11369e]
2018-10-22 16:46:17 -04:00