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

272 Коммитов

Автор SHA1 Сообщение Дата
foreman 9d6cc4d642 P4 to Git Change 2048698 by jujiang@JJ-HIP on 2019/12/19 15:52:21
SWDEV-215536 - [HIP][Windows]Output mismatch with tex2DLayered()

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#93 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#31 edit


[ROCm/hip commit: f02b4ffd82]
2019-12-19 15:57:37 -05:00
foreman bd40deaccc P4 to Git Change 2047959 by skudchad@skudchad_test2_win_opencl on 2019/12/18 14:40:28
SWDEV-213000 - Add notifyCmdQueue in ihipModuleLaunchKernel. This torques timing and flushes the queue immediately. Investigation pending.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#51 edit


[ROCm/hip commit: 3beb70b72a]
2019-12-18 14:42:18 -05:00
foreman d5776751ca P4 to Git Change 2047424 by lmoriche@lmoriche_opencl_dev2 on 2019/12/17 20:13:01
SWDEV-216705 - [hipclang-vdi-rocm][FBA-80]Test crash when all GPUs are hidden by ROCR_VISIBLE_DEVICES

	Return an error instead of dereferencing a null pointer. This should address the issue described
	in the ticket, but more places need fixing in the runtime to avoid crashes for corner cases.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#92 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#58 edit


[ROCm/hip commit: f6d38a725c]
2019-12-17 20:18:36 -05:00
foreman a81fb22bc7 P4 to Git Change 2045076 by skudchad@skudchad_test2_win_opencl on 2019/12/12 15:57:20
SWDEV-213031 - Check the functions_ map else interpret as a hip::Function for now. Function may not be a device function and may have been obtaiend via hipModuleGetFunction and thus not in the functions_ map

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#57 edit


[ROCm/hip commit: 455c3a91ef]
2019-12-12 16:01:14 -05:00
foreman 4a1d5b54e7 P4 to Git Change 2044900 by skudchad@skudchad_test2_win_opencl on 2019/12/12 11:42:43
SWDEV-203814 - Add cases to handle char* and char** for tracehelper

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/trace_helper.h#4 edit


[ROCm/hip commit: ec54afaa32]
2019-12-12 11:47:12 -05:00
foreman b86804796d P4 to Git Change 2044310 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/11 19:20:38
SWDEV-213526 - [hip] OOM issue
	Clean up a bit from Laurent's comments.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#50 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#56 edit


[ROCm/hip commit: dac5ef4e22]
2019-12-11 19:31:20 -05:00
foreman 41e7be0fa6 P4 to Git Change 2044309 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/11 19:19:15
SWDEV-145570 - [hip] special case const char* for logs in case it's a null pointer.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/trace_helper.h#3 edit


[ROCm/hip commit: de46a0e205]
2019-12-11 19:26:50 -05:00
foreman ab8b693e4a P4 to Git Change 2044223 by jujiang@JJ-HIP on 2019/12/11 16:16:37
SWDEV-214490 - Update HIP RT for texture3D in HIP/PAL on Windows
	-Update hipCreateTextureObject

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#91 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#30 edit


[ROCm/hip commit: eaef4a97b5]
2019-12-11 16:30:48 -05:00
foreman b3807a8ab7 P4 to Git Change 2043802 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/11 03:06:02
SWDEV-213526 - [hip] OOM issue
	Delay any access to device layers till HIP API is called by app.
	This allows the app to fork the process first and then call HIP which is legal.
	Doing hip calls then fork isn't legal nor supported by ROCm.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#49 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#55 edit


[ROCm/hip commit: 921fa13d81]
2019-12-11 03:11:19 -05:00
foreman bc52bfaeb8 P4 to Git Change 2042612 by eshcherb@evgeny-hip on 2019/12/09 11:11:38
SWDEV-197289 - HIP-VDI tracing
	activity suppressing of type is zero;
	fixing callbacks table recursive mutex;

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_prof_api.h#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#101 edit


[ROCm/hip commit: 0705efa384]
2019-12-09 11:22:57 -05:00
foreman 77f32e82e4 P4 to Git Change 2042093 by jujiang@JJ-HIP on 2019/12/06 14:44:16
SWDEV-214490 - Update HIP RT for texture3D in HIP/PAL on Windows
	-Update hipTexRefSetArray

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#29 edit


[ROCm/hip commit: f4df28905e]
2019-12-06 14:53:41 -05:00
foreman ba2909e860 P4 to Git Change 2041756 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/06 00:27:07
SWDEV-213526 - [hip] OOM issue
	Restore lazy kernel uploads for 2.10 release.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#54 edit


[ROCm/hip commit: c1d63fbdbb]
2019-12-06 00:33:55 -05:00
foreman cac41c4251 P4 to Git Change 2040890 by skudchad@skudchad_test2_win_opencl on 2019/12/04 14:16:51
SWDEV-203814 - HIPRTC Inprocess runtime changes(part2)

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#37 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#35 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_rtc.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#73 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#38 edit


[ROCm/hip commit: 65fd472364]
2019-12-04 14:22:03 -05:00
foreman 764b1c6e2f P4 to Git Change 2040884 by jujiang@JJ-HIP on 2019/12/04 13:59:15
SWDEV-214490 - Update HIP RT for texture3D in HIP/PAL on Windows
	-Update hipMemcpy3D function
	http://ocltc.amd.com/reviews/r/18346/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#90 edit


[ROCm/hip commit: 188a357527]
2019-12-04 14:06:53 -05:00
foreman 695236d0e7 P4 to Git Change 2040867 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/12/04 13:32:27
SWDEV-145570 - Adding back the lazy kernel changes because the OOM issue is because of KFD/RocR.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#53 edit


[ROCm/hip commit: a077140ae2]
2019-12-04 13:34:03 -05:00
foreman 2fb6170da1 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


[ROCm/hip commit: 69dcd2b862]
2019-12-02 13:37:35 -06:00
foreman b3e62f6283 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


[ROCm/hip commit: 5349bd8036]
2019-11-29 10:17:28 -05:00
foreman 3c4fa4941d 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


[ROCm/hip commit: 601b88ad18]
2019-11-26 17:03:41 -05:00
foreman 452d58f4c6 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


[ROCm/hip commit: 5c5588bf20]
2019-11-22 17:56:07 -05:00
foreman a5b93415e5 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


[ROCm/hip commit: 90546b742e]
2019-11-22 11:29:49 -05:00
foreman 428a92ad85 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


[ROCm/hip commit: de09e11c0a]
2019-11-21 19:33:05 -05:00
foreman 1c1f389beb 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


[ROCm/hip commit: 3705a045f0]
2019-11-20 07:24:20 -05:00
foreman 0532eabcd1 P4 to Git Change 2033170 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/19 13:26:16
SWDEV-212215 - HIP-VDI runtime should not lazy load device code objects
	Temporarly disable lazy load of code objects for debugger.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#49 edit


[ROCm/hip commit: 02f8c57eb5]
2019-11-19 13:34:00 -05:00
foreman e7931a8649 P4 to Git Change 2031768 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/16 17:21:58
SWDEV-212440 - [HIP] Memory access fault observed on Pytorch while running performance tests with Microbenchmarking script
	We need to loop through all the default stream to sync them in case
	the app call hipFree on a different current stream and another current stream
	is using the memory.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#85 edit


[ROCm/hip commit: 9529795fab]
2019-11-16 17:25:59 -05:00
foreman 4bfac94e66 P4 to Git Change 2029899 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/13 12:29:19
SWDEV-144570 - Implementing ihipUnbindTextureImpl API.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#35 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#33 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#27 edit


[ROCm/hip commit: c4e4e370a9]
2019-11-13 12:34:13 -05:00
foreman 4f54bb2285 P4 to Git Change 2029039 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/12 12:52:46
SWDEV-210844 - Implementing hipExtGetLinkTypeAndHopCount

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#344 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#47 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#141 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#44 edit


[ROCm/hip commit: ceebda15ef]
2019-11-12 12:55:17 -05:00
foreman d81a4b729f P4 to Git Change 2026174 by eshcherb@evgeny-hip on 2019/11/06 19:37:26
SWDEV-197289 - tracing callbacks call fix

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_prof_api.h#5 edit


[ROCm/hip commit: 692477f964]
2019-11-06 19:47:10 -05:00
foreman 23291c1b11 P4 to Git Change 2026152 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/06 17:50:08
SWDEV-206239 - [HIP] RCCL: finegrain VRAM does not work
	Implemented fine grained VRAM allocation via ATOMICS.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#84 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#138 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#43 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#45 edit


[ROCm/hip commit: 649cb36977]
2019-11-06 18:00:44 -05:00
foreman c1400c5234 P4 to Git Change 2024544 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/04 16:35:14
SWDEV-145570 - [HIP] Fetched properties from current device and not default 0 one.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#21 edit


[ROCm/hip commit: c536429a6b]
2019-11-04 16:42:31 -05:00
foreman ba23455719 P4 to Git Change 2024543 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/04 16:32:23
SWDEV-206239 - [HIP] Return hipErrorMemoryAllocation for fine grained VRAM for now

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#83 edit


[ROCm/hip commit: 571b8d625d]
2019-11-04 16:39:35 -05:00
foreman 187d089afa P4 to Git Change 2024454 by axie@axie-hip-rocm on 2019/11/04 14:38:31
SWDEV-198863 - Options for hip-clang-vdi path to provide the chicken bits, or functional equivalents to HCC_DB (phase 1)

	1. The log macros is turned off for release build.  So log functions has zero impact to release build.
	2. The log macros have level, mask, condition control. So we can have more control to avoid log flooding.

	I also adjusted some existing log to use new log functions.
	1. To excercise and test the new log functions.
	2. To improve performance slightly.
	3. The change is mainly for HIP-ROCM, we can move more in next phases for PAL or ORCA.
	4. I make these log feature unavailable for release build. We can revert to old log functions for release build in a case by case method.

	Tests:
	1. http://ocltc.amd.com:8111/viewModification.html?modId=128289&personal=true&tab=vcsModificationBuilds
	http://ocltc.amd.com:8111/viewModification.html?modId=128358&personal=true&tab=vcsModificationBuilds

	2. release build, run hip program, there is no log
	3. fastdebug build, run hip program,
	export LOG_LEVEL=3
	export GPU_LOG_MASK=4294967295
	There was a lot of logs.

	4. fastdebug build, run hip program,
	export LOG_LEVEL=2
	export GPU_LOG_MASK=4294967295
	There was no logs.

	5. fastdebug build, run hip program,
	export LOG_LEVEL=3
	export GPU_LOG_MASK=4294967294
	There was much less logs.

	6. fastdebug build, run hip program,
	export LOG_LEVEL=3
	export GPU_LOG_MASK=47102
	There was even much less logs. The logs was expected according to the mask.

	7. Tested step 2 to 6 similarily in Windows and Linux

	ReviewBoard: http://ocltc.amd.com/reviews/r/18215

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#46 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hiprtc_internal.hpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/comgrctx.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#68 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#137 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#91 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#100 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/runtime.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/debug.hpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#323 edit


[ROCm/hip commit: 007687bf53]
2019-11-04 14:44:59 -05:00
foreman fa734a8ade P4 to Git Change 2024314 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/04 11:44:45
SWDEV-206759 - Fixing Compilation error.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#47 edit


[ROCm/hip commit: 60e81906f5]
2019-11-04 11:53:27 -05:00
foreman e77419eb2a P4 to Git Change 2024251 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/11/04 10:07:42
SWDEV-206759 - Adding support for duplicate global vars

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#45 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#81 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#46 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#48 edit
... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/build/Makefile.hip_tests#30 edit


[ROCm/hip commit: 33038437b3]
2019-11-04 10:13:20 -05:00
foreman aa87a6a41d P4 to Git Change 2022168 by jujiang@JJ-OCL-hip on 2019/10/30 18:06:41
SWDEV-208594 - [HIP][Windows] Output mismatch with texture ref test functions with float4 type

	-Fix TexRef1D float/float4, and TexRef2D tests.
	http://ocltc.amd.com/reviews/r/18203/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#26 edit


[ROCm/hip commit: 819b29f92d]
2019-10-30 18:11:27 -04:00
foreman e76231a330 P4 to Git Change 2021977 by kjayapra@1_HIPWS_LNX1_PAL on 2019/10/30 13:27:19
SWDEV-209747 - Improve HIP Error codes and debug messages.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#20 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_event.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#80 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_peer.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_profile.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_surface.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#25 edit


[ROCm/hip commit: e833ad571f]
2019-10-30 13:37:03 -04:00
foreman 005535c8f6 P4 to Git Change 2021608 by michliao@hliao-dev-00-hip.rocm-workspace on 2019/10/30 01:13:58
SWDEV-145570 - [HIP] Fix occupancy API prototype.

	- They need to be C API, i.e. extern "C".
	- Follow the current API and use `uint32_t` instead of `int`.
	  + TODO: We need to revert them back once that APIs are changed to be
	    compatible with CUDA.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#46 edit


[ROCm/hip commit: a0f8995e3a]
2019-10-30 01:19:24 -04:00
foreman 5d4af9ce22 P4 to Git Change 2018917 by gandryey@gera-win10 on 2019/10/24 14:33:36
SWDEV-197289 - VDI tracing API integration in rocTracer
	- Change the names of the functions according to the new interface

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_activity.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#34 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#32 edit


[ROCm/hip commit: 63a26884aa]
2019-10-24 14:40:22 -04:00
foreman 65728e91cf P4 to Git Change 2018213 by eshcherb@evgeny-hip on 2019/10/23 11:36:28
SWDEV-197287 - exporting interception functions

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#33 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#31 edit


[ROCm/hip commit: ff8a4e3b3b]
2019-10-23 11:45:28 -04:00
foreman ddcb175a67 P4 to Git Change 2017678 by jujiang@JJ-OCL-hip on 2019/10/22 17:01:21
SWDEV-208594 - Output mismatch with texture functions

	Revert CL#2014458 for now

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#24 edit


[ROCm/hip commit: 04b0f820b0]
2019-10-22 17:06:07 -04:00
foreman a5aec98ec4 P4 to Git Change 2017443 by eshcherb@evgeny-hip on 2019/10/22 12:00:47
SWDEV-197287 - prof_protocol fix

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_prof_api.h#4 edit
... //depot/stg/opencl/drivers/opencl/api/hip/prof_protocol.h#2 delete
... //depot/stg/opencl/drivers/opencl/runtime/platform/prof_protocol.h#2 edit


[ROCm/hip commit: 06c37696fc]
2019-10-22 12:38:12 -04:00
foreman 4e6b80a5f1 P4 to Git Change 2016115 by cpaquot@cpaquot-ocl-lc-lnx on 2019/10/18 13:58:30
SWDEV-207366 - [HIP] 'hipErrorInvalidValue' (1011) with hipMemcpy3D
	We need to divide by sizeByte and not multiply the WidthInBytes to get pixel width

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#79 edit


[ROCm/hip commit: 4ec9d181e0]
2019-10-18 14:10:57 -04:00
foreman 198e044932 P4 to Git Change 2015320 by vsytchen@vsytchen-hip-win10 on 2019/10/17 14:00:39
SWDEV-207100 - [HIP CQE][HIPonPAL][WIN][QR] 5 hiptests failed in 19H1 Windows on all ASICs

	1. Reshuffle locations of the hipMemset functions to make them all next to each other.
	2. Update the declarations of hipMemsetD8, hipMemsetD8Async, hipMemsetD16, hipMemsetD16Async. These functions are type aware and take in as their third argument the number of elements in the buffer, not the buffer size. Change the name of this argument from sizeBytes to count to align with the above description. Changes for the header are tracked here https://github.com/ROCm-Developer-Tools/HIP/pull/1544
	3. Add the actual implementation of hipMemsetD8, hipMemsetD8Async, hipMemsetD16, hipMemsetD16Async.
	4. Remove ihipMemset2D() as it is essentially a copy of ihipMemset(). Change hipMemset2D()/hipMemset2DAsync() to use ihipMemset().
	5. Implement hipMemset3DAsync().
	6. Update the test script to pick up the updated command line options for hipMemset and hipMemset3D.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#32 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#30 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#78 edit
... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/scripts/hip_runtimeapi_tests.txt#13 edit


[ROCm/hip commit: 238a71c4ca]
2019-10-17 14:09:46 -04:00
foreman 745c8c7380 P4 to Git Change 2014744 by vsytchen@vsytchen-ocl-win10-2 on 2019/10/16 17:37:46
SWDEV-207449 - [HIP CQE][HIPonPAL][LNX][QR] 6 hiptests failed on all ASICs

	hipTestHalf fails to build on Windows due to linker error "unresolved external symbol __gnu_h2f_ieee"

	1. Expose __gnu_h2f_ieee() and __gnu_f2h_ieee() for Windows builds.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#31 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#45 edit


[ROCm/hip commit: d43f0eedcc]
2019-10-16 17:47:55 -04:00
foreman 0b95cff318 P4 to Git Change 2014458 by jujiang@JJ-HIP on 2019/10/16 11:52:39
SWDEV-205925 - Update HIP texture APIs for issue in hipTexRefSetAddress in HIP/PAL on Windows

	- Remove the nullptr possibility
	http://ocltc.amd.com/reviews/r/18121/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#23 edit


[ROCm/hip commit: ef14b8b361]
2019-10-16 12:03:49 -04:00
foreman ac8109b1ac P4 to Git Change 2014404 by gandryey@gera-win10 on 2019/10/16 11:13:37
SWDEV-184710 - Support hipLaunchCooperativeKernelMultiDevice()
	- Add support for multi grid launch in hip
	- Detect the new hidden argument and pass the required information for the kernel launch
	- Memory for synchronization is allocated as a single object and then the offset for each GPU is found

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#343 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#136 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#99 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#97 edit


[ROCm/hip commit: 70a52b9cd7]
2019-10-16 11:24:09 -04:00
foreman 185c445b9a P4 to Git Change 2013937 by kjayapra@1_HIPWS_LNX1_PAL on 2019/10/15 17:40:44
SWDEV-203394 - Setting Array Channel Desc in hipArrayCreate.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#77 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#22 edit


[ROCm/hip commit: 87dbe184aa]
2019-10-15 16:43:10 -05:00
foreman a2841a5929 P4 to Git Change 2012424 by axie@axie_win_opencl_ssd on 2019/10/11 14:32:12
SWDEV-206239 - [hipclang-vdi-rocm][perf]RCCL: finegrain VRAM does not work
	xGMI may not work. Otherwise, several GPUs and CPU can access the same host memory atomically by API hipExtMallocWithFlags

	Tests:
	http://ocltc:8111/viewModification.html?modId=127344&personal=true&init=1&tab=vcsModificationBuilds

	ReviewBoard: http://ocltc.amd.com/reviews/r/18109/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#76 edit


[ROCm/hip commit: 001f07ae83]
2019-10-11 14:43:24 -04:00
foreman 2058d5033f P4 to Git Change 2011990 by eshcherb@evgeny-hip on 2019/10/10 20:09:32
SWDEV-197287 - HIP tracing layer: any-api-id removing

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_prof_api.h#3 edit
... //depot/stg/opencl/drivers/opencl/hip_prof_gen.py#3 edit


[ROCm/hip commit: 980623d5e1]
2019-10-10 20:23:33 -04:00
foreman 6285c64be1 P4 to Git Change 2010058 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/10/08 14:44:53
SWDEV-144570 - Implementation of APIs hipMemsetD8Async, hipMemAllocPitch, hipMemAllocHost and template for hipMemsetD16, hipMemsetD16Async.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#30 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#29 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#75 edit


[ROCm/hip commit: e455ddb5b3]
2019-10-08 14:55:27 -04:00
foreman 2005705374 P4 to Git Change 2009953 by eshcherb@evgeny-hip on 2019/10/08 12:36:36
SWDEV-197287 - HIP tracing layer instrumentation - Windows link issues.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_intercept.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_prof_api.h#2 edit


[ROCm/hip commit: 3990498a1e]
2019-10-08 12:46:05 -04:00