Commit Graph

54851 Commits

Author SHA1 Message Date
foreman eb26cc0305 P4 to Git Change 1518569 by gandryey@gera-w8 on 2018/02/22 18:48:33
SWDEV-145750 - SSG Player drop in performance observed when using the OCL Api in 18.10
	- Keep persistent memory mapped all time for Linux and Win10

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#73 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#48 edit


[ROCm/clr commit: 9018bc85cc]
2018-02-22 18:54:16 -05:00
foreman 9018bc85cc P4 to Git Change 1518569 by gandryey@gera-w8 on 2018/02/22 18:48:33
SWDEV-145750 - SSG Player drop in performance observed when using the OCL Api in 18.10
	- Keep persistent memory mapped all time for Linux and Win10

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#73 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#48 edit
2018-02-22 18:54:16 -05:00
Jay Cornwall e2c353dc0d Allocate EOP queue local to GPU
On discrete GPUs place the EOP queue in VRAM. The reader/writer of this
queue is the CP and the size is small. Dispatch latency improves
through lower read latency in AQL completion phase.

Change-Id: Id8351dcddbd21fd7c7d699803c96434c9132db71
Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>
2018-02-22 18:14:05 -05:00
Jay Cornwall 5b079d80cf Allocate EOP queue local to GPU
On discrete GPUs place the EOP queue in VRAM. The reader/writer of this
queue is the CP and the size is small. Dispatch latency improves
through lower read latency in AQL completion phase.

Change-Id: Id8351dcddbd21fd7c7d699803c96434c9132db71
Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>


[ROCm/ROCR-Runtime commit: e2c353dc0d]
2018-02-22 18:14:05 -05:00
foreman 5ce7e79f2c P4 to Git Change 1518310 by msearles@zuni-1666 on 2018/02/22 13:02:34
SWDEV-102733 - Update some CMakeLists.txt files:
	      - when setting CMAKE_CXX_FLAGS, append to it rather than overwriting it.
	      - some linker flags, -Wl,--unresolved-symbols=report-all being one of them, requires -shared-libasan if using -fsanitize=address.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#9 edit
... //depot/stg/opencl/drivers/opencl/tools/clinfo/CMakeLists.txt#5 edit


[ROCm/clr commit: 23ba7de5cc]
2018-02-22 13:07:08 -05:00
foreman 23ba7de5cc P4 to Git Change 1518310 by msearles@zuni-1666 on 2018/02/22 13:02:34
SWDEV-102733 - Update some CMakeLists.txt files:
	      - when setting CMAKE_CXX_FLAGS, append to it rather than overwriting it.
	      - some linker flags, -Wl,--unresolved-symbols=report-all being one of them, requires -shared-libasan if using -fsanitize=address.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#9 edit
... //depot/stg/opencl/drivers/opencl/tools/clinfo/CMakeLists.txt#5 edit
2018-02-22 13:07:08 -05:00
foreman e4483ab67d P4 to Git Change 1518310 by msearles@zuni-1666 on 2018/02/22 13:02:34
SWDEV-102733 - Update some CMakeLists.txt files:
	      - when setting CMAKE_CXX_FLAGS, append to it rather than overwriting it.
	      - some linker flags, -Wl,--unresolved-symbols=report-all being one of them, requires -shared-libasan if using -fsanitize=address.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#9 edit
... //depot/stg/opencl/drivers/opencl/tools/clinfo/CMakeLists.txt#5 edit


[ROCm/clr commit: a31d6b2e6d]
2018-02-22 13:07:08 -05:00
foreman a31d6b2e6d P4 to Git Change 1518310 by msearles@zuni-1666 on 2018/02/22 13:02:34
SWDEV-102733 - Update some CMakeLists.txt files:
	      - when setting CMAKE_CXX_FLAGS, append to it rather than overwriting it.
	      - some linker flags, -Wl,--unresolved-symbols=report-all being one of them, requires -shared-libasan if using -fsanitize=address.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#9 edit
... //depot/stg/opencl/drivers/opencl/tools/clinfo/CMakeLists.txt#5 edit
2018-02-22 13:07:08 -05:00
foreman f1c4d55131 P4 to Git Change 1518288 by rili@rili-new-stg-pal-opencl on 2018/02/22 11:48:27
SWDEV-145977 - Add RV2 support

	Code Review: http://ocltc.amd.com/reviews/r/14280/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#151 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#584 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#359 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#182 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/caltarget.h#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/BIFEnumCheck.cpp#29 edit


[ROCm/clr commit: 633ed0a02d]
2018-02-22 12:09:33 -05:00
foreman 633ed0a02d P4 to Git Change 1518288 by rili@rili-new-stg-pal-opencl on 2018/02/22 11:48:27
SWDEV-145977 - Add RV2 support

	Code Review: http://ocltc.amd.com/reviews/r/14280/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#151 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#584 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#359 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#182 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/caltarget.h#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/BIFEnumCheck.cpp#29 edit
2018-02-22 12:09:33 -05:00
Alex Voicu c4d704b2ad Change directory name to match HIP lowercase style.
[ROCm/clr commit: 696f0595a3]
2018-02-22 13:15:10 +00:00
Alex Voicu 696f0595a3 Change directory name to match HIP lowercase style. 2018-02-22 13:15:10 +00:00
Alex Voicu dc7560ef22 Change directory name to match HIP lowercase style. 2018-02-22 13:15:10 +00:00
Alex Voicu 4e8e090839 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/clr commit: 1563d53c92]
2018-02-22 12:08:52 +00:00
Alex Voicu 1563d53c92 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco 2018-02-22 12:08:52 +00:00
Alex Voicu 49ef24c042 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco 2018-02-22 12:08:52 +00:00
foreman 6389fa3829 P4 to Git Change 1518106 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/22 03:00:05
SWDEV-2 - Change OpenCL version number from 2595 to 2596.

Affected files ...

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


[ROCm/clr commit: 7b2c30bd6d]
2018-02-22 03:06:47 -05:00
foreman 7b2c30bd6d P4 to Git Change 1518106 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/22 03:00:05
SWDEV-2 - Change OpenCL version number from 2595 to 2596.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2343 edit
2018-02-22 03:06:47 -05:00
Evgeny 33b3546fe4 adding queue destroy callback 2018-02-21 19:59:47 -06:00
Evgeny ff5b92b47b adding queue destroy callback
[ROCm/rocprofiler commit: 33b3546fe4]
2018-02-21 19:59:47 -06:00
foreman a9e75064ed P4 to Git Change 1517959 by gandryey@gera-lnx-rcf on 2018/02/21 17:24:16
SWDEV-79445 - Add RGP trace capture capability into runtime.
	- Initial implementation
	- PAL_RGP_DISP_COUNT controls the number of captured dispatches(default 10).
	- RD panel and service are required in order to capture the traces and RD Profiler for viewing and SQTT exports

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#72 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#43 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#73 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#41 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#283 edit


[ROCm/clr commit: dfb5e1b844]
2018-02-21 17:35:38 -05:00
foreman dfb5e1b844 P4 to Git Change 1517959 by gandryey@gera-lnx-rcf on 2018/02/21 17:24:16
SWDEV-79445 - Add RGP trace capture capability into runtime.
	- Initial implementation
	- PAL_RGP_DISP_COUNT controls the number of captured dispatches(default 10).
	- RD panel and service are required in order to capture the traces and RD Profiler for viewing and SQTT exports

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#72 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#43 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#73 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#41 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#283 edit
2018-02-21 17:35:38 -05:00
Evgeny a9a5119399 contrctor/destructor changes, OnLoad/OnUnload functions, removed hsa_init()/hsa_shutdown() 2018-02-21 10:07:59 -06:00
Evgeny 6eef0003a5 contrctor/destructor changes, OnLoad/OnUnload functions, removed hsa_init()/hsa_shutdown()
[ROCm/rocprofiler commit: a9a5119399]
2018-02-21 10:07:59 -06:00
foreman 63e460b3bf P4 to Git Change 1517701 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/21 03:00:05
SWDEV-2 - Change OpenCL version number from 2594 to 2595.

Affected files ...

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


[ROCm/clr commit: a6603eb87c]
2018-02-21 03:07:34 -05:00
foreman a6603eb87c P4 to Git Change 1517701 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/21 03:00:05
SWDEV-2 - Change OpenCL version number from 2594 to 2595.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2342 edit
2018-02-21 03:07:34 -05:00
foreman 715660477d P4 to Git Change 1517501 by asalmanp@asalmanp-ocl-stg on 2018/02/20 13:54:28
SWDEV-132899 - [OCL][GFX10] OCLCreateImage[3] fails for the image type 1Darray
	Issue: FillImage blit kernel is not working properly on gfx10 if the image type is 1Darray (i.e., it only fills the first slice/layer and ignores the rest of the layers when number of layers >1)
	Root cause: gfx10 HW expects the number of layers in Z component
	Fix: To fix this issue we swap the Y and Z components if the image type is 1Darray for gfx10+ in image blit kernels.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#14 edit


[ROCm/clr commit: e0f4740fc4]
2018-02-20 14:15:36 -05:00
foreman e0f4740fc4 P4 to Git Change 1517501 by asalmanp@asalmanp-ocl-stg on 2018/02/20 13:54:28
SWDEV-132899 - [OCL][GFX10] OCLCreateImage[3] fails for the image type 1Darray
	Issue: FillImage blit kernel is not working properly on gfx10 if the image type is 1Darray (i.e., it only fills the first slice/layer and ignores the rest of the layers when number of layers >1)
	Root cause: gfx10 HW expects the number of layers in Z component
	Fix: To fix this issue we swap the Y and Z components if the image type is 1Darray for gfx10+ in image blit kernels.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#14 edit
2018-02-20 14:15:36 -05:00
Oak Zeng 25170c3c57 Support ptrace access invisible vram
Invisible device memory is mmapped as PROT_NONE.
Normal CPU access to the memory is still not allowed but
struct vm_area_struct will be created for the memory address
so ptrace can access the memory via the vma.

Change-Id: I07c69208716c920ccce33e6b494b610b61a0a7c1
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2018-02-20 14:13:00 -05:00
Oak Zeng ad1f1ee5dc Support ptrace access invisible vram
Invisible device memory is mmapped as PROT_NONE.
Normal CPU access to the memory is still not allowed but
struct vm_area_struct will be created for the memory address
so ptrace can access the memory via the vma.

Change-Id: I07c69208716c920ccce33e6b494b610b61a0a7c1
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>


[ROCm/ROCR-Runtime commit: 25170c3c57]
2018-02-20 14:13:00 -05:00
Jenkins a58ca0ceff Merge 'master' into 'amd-master'
Change-Id: Ib1251a94fa5c1d242d2cdd89341fbdc33644cf41


[ROCm/clr commit: 4783e4c2f3]
2018-02-20 04:09:51 -06:00
Jenkins 4783e4c2f3 Merge 'master' into 'amd-master'
Change-Id: Ib1251a94fa5c1d242d2cdd89341fbdc33644cf41
2018-02-20 04:09:51 -06:00
Jenkins 55636f0dd2 Merge 'master' into 'amd-master'
Change-Id: Ib1251a94fa5c1d242d2cdd89341fbdc33644cf41
2018-02-20 04:09:51 -06:00
foreman 59d8f7788f P4 to Git Change 1517333 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/20 03:08:24
SWDEV-2 - Change OpenCL version number from 2593 to 2594.

Affected files ...

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


[ROCm/clr commit: 66208072a3]
2018-02-20 03:21:07 -05:00
foreman 66208072a3 P4 to Git Change 1517333 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/20 03:08:24
SWDEV-2 - Change OpenCL version number from 2593 to 2594.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2341 edit
2018-02-20 03:21:07 -05:00
Maneesh Gupta 829c80c7cd Merge pull request #361 from scchan/load_startup2
load the GPU objects and setup the function symbol map on startup

[ROCm/clr commit: 7c2232d4e7]
2018-02-20 12:27:41 +05:30
Maneesh Gupta 7c2232d4e7 Merge pull request #361 from scchan/load_startup2
load the GPU objects and setup the function symbol map on startup
2018-02-20 12:27:41 +05:30
Maneesh Gupta 1f0ad7e54c Merge pull request #361 from scchan/load_startup2
load the GPU objects and setup the function symbol map on startup
2018-02-20 12:27:41 +05:30
Evgeny 52b3ce5845 metrix update 2018-02-19 18:50:28 -06:00
Evgeny 1621e666da metrix update
[ROCm/rocprofiler commit: 52b3ce5845]
2018-02-19 18:50:28 -06:00
Evgeny 0b0ce2d931 update 2018-02-19 18:18:51 -06:00
Evgeny 36434ee974 update
[ROCm/rocprofiler commit: 0b0ce2d931]
2018-02-19 18:18:51 -06:00
Siu Chi Chan 9fddf100b7 make HIP to load the GPU objects and to setup the function symbol map on startup
[ROCm/clr commit: 0ca9591e55]
2018-02-18 14:26:44 -05:00
Siu Chi Chan 0ca9591e55 make HIP to load the GPU objects and to setup the function symbol map on startup 2018-02-18 14:26:44 -05:00
Siu Chi Chan ebc92e5975 make HIP to load the GPU objects and to setup the function symbol map on startup 2018-02-18 14:26:44 -05:00
foreman 5d22988bc0 P4 to Git Change 1516688 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/16 03:00:05
SWDEV-2 - Change OpenCL version number from 2592 to 2593.

Affected files ...

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


[ROCm/clr commit: ccb104e56b]
2018-02-16 03:29:48 -05:00
foreman ccb104e56b P4 to Git Change 1516688 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/16 03:00:05
SWDEV-2 - Change OpenCL version number from 2592 to 2593.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2340 edit
2018-02-16 03:29:48 -05:00
foreman 41f5fd45af P4 to Git Change 1516358 by emankov@em-hsa on 2018/02/15 08:04:51
SWDEV-143465 - Revert of #1516121

	[Reason]
	A plenty of tests are failed.
	After the changing stack logic a lot of tests should be fixed, a lot - to be removed from testing.
	#1516121 will be submitted again after renewal/removal of all the failed tests.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/common/v0_8/if_acl.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#98 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#583 edit


[ROCm/clr commit: f63eb0e998]
2018-02-15 08:12:32 -05:00
foreman f63eb0e998 P4 to Git Change 1516358 by emankov@em-hsa on 2018/02/15 08:04:51
SWDEV-143465 - Revert of #1516121

	[Reason]
	A plenty of tests are failed.
	After the changing stack logic a lot of tests should be fixed, a lot - to be removed from testing.
	#1516121 will be submitted again after renewal/removal of all the failed tests.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/common/v0_8/if_acl.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#98 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#583 edit
2018-02-15 08:12:32 -05:00
foreman 04ebcf32bf P4 to Git Change 1516338 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/15 03:00:05
SWDEV-2 - Change OpenCL version number from 2591 to 2592.

Affected files ...

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


[ROCm/clr commit: 890b5a78cc]
2018-02-15 03:05:33 -05:00