Commit Graph

13557 Commits

Author SHA1 Message Date
foreman 1d513806a5 P4 to Git Change 1531579 by gandryey@gera-lnx-rcf on 2018/03/23 14:37:00
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove static from the template to fix gcc compilation

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#47 edit
2018-03-23 14:45:37 -04:00
foreman bdd5200cfa P4 to Git Change 1531535 by skudchad@skudchad_rocm on 2018/03/23 13:57:49
SWDEV-145570 - [HIP] Add some context* functions. Add context stack.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#4 edit
2018-03-23 14:18:27 -04:00
foreman 62a00d336e P4 to Git Change 1531530 by gandryey@gera-w8 on 2018/03/23 13:45:11
SWDEV-79445 - OCL generic changes and code clean-up
	- Add explicit type specialization for AQL copy types to avoid memcpy() calls in the most of cases
	- Increase size of sysmem copy for constants buffers to account the internal arguments

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#46 edit
2018-03-23 14:12:49 -04:00
foreman 6002477091 P4 to Git Change 1531403 by wchau@wchau_OCL_boltzmann on 2018/03/23 10:07:08
SWDEV-134107 - Add support for respecting target's xnack setting
	- Port Konstantin's change of "Bring naming o par with the spec" in git (Change 139283)

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#85 edit
2018-03-23 11:01:31 -04:00
foreman 4a60726fc4 P4 to Git Change 1531180 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/23 03:00:04
SWDEV-2 - Change OpenCL version number from 2616 to 2617.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2364 edit
2018-03-23 03:10:21 -04:00
foreman c531507708 P4 to Git Change 1531138 by cpaquot@cpaquot-ocl-lc-lnx on 2018/03/23 00:10:40
SWDEV-145570 - [HIP] Module
	Check for correct device id in hipDeviceGetAttribute
	Implement hipModuleLoad
	Handle kernelParams in hipModuleLaunchKernel

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#3 edit
2018-03-23 00:19:22 -04:00
foreman d6589a93b2 P4 to Git Change 1530996 by gandryey@gera-w8 on 2018/03/22 18:11:14
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove obsolete assert

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#55 edit
2018-03-22 18:18:21 -04:00
foreman ace31f6a11 P4 to Git Change 1530988 by gandryey@gera-w8 on 2018/03/22 17:50:10
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove renames support from the Resource object.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#54 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#17 edit
2018-03-22 17:58:21 -04:00
foreman dff8a2764c P4 to Git Change 1530960 by gandryey@gera-lnx-rcf on 2018/03/22 17:07:41
SWDEV-79445 - OCL generic changes and code clean-up
	- Fix Linux build

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#4 edit
2018-03-22 17:18:49 -04:00
foreman db04b3b295 P4 to Git Change 1530931 by gandryey@gera-w8 on 2018/03/22 16:38:47
SWDEV-79445 - OCL generic changes and code clean-up
	- Prepare the changes to remove resource rename feature. Resource rename can substitute a low level memory object in the current resource with a different one in order to avoid GPU stalls on frequent CPU updates, like constant buffers or staging buffers. Renaming was necessary due to CAL and old HW limitations to manage suballocations and has some inefficiency with tiny updates and staging buffers.
	- This change removes renames usage from the constant buffer management

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#78 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#43 edit
2018-03-22 16:51:43 -04:00
foreman 41404377b1 P4 to Git Change 1530499 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/22 03:00:05
SWDEV-2 - Change OpenCL version number from 2615 to 2616.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2363 edit
2018-03-22 03:12:27 -04:00
Laurent Morichetti 8f4c368dce Merge remote-tracking branch 'upstream/master' 2018-03-21 11:17:52 -07:00
Laurent Morichetti 84a723b2dc Add HIP_KERNEL_NAME/HIP_SYMBOL definitions for HIP-clang, and rename hipLaunch->hipLaunchByPtr. 2018-03-21 11:07:21 -07:00
foreman 2c0282ae12 P4 to Git Change 1529894 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/21 03:00:04
SWDEV-2 - Change OpenCL version number from 2614 to 2615.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2362 edit
2018-03-21 03:50:41 -04:00
foreman 68c299486b P4 to Git Change 1529710 by wchau@wchau_OCL_boltzmann on 2018/03/20 17:05:04
SWDEV-145760 - OCL on ROCm Support for respecting target's xnack setting (subtask of SWDEV-134107)

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#77 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#58 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#41 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#84 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#80 edit
2018-03-20 17:13:51 -04:00
foreman 1f53841421 P4 to Git Change 1529531 by gandryey@gera-w8 on 2018/03/20 11:50:12
SWDEV-79445 - OCL generic changes and code clean-up
	- Fix a regression in the AMF test and reenable the suballoc optimization. Rearrange the locks around cache field access only to avoid calling memory release under the cache lock.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#57 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#53 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#287 edit
2018-03-20 12:01:19 -04:00
Jenkins 8af72e8ce7 Merge 'master' into 'amd-master'
Change-Id: I42f0b83d11945fc03fb75f4a553c37f9f42f28a4
2018-03-20 04:10:00 -05:00
foreman 312057dbe2 P4 to Git Change 1529318 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/20 03:00:03
SWDEV-2 - Change OpenCL version number from 2613 to 2614.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2361 edit
2018-03-20 03:11:01 -04:00
foreman f4dad682a7 P4 to Git Change 1529097 by gandryey@gera-w8 on 2018/03/19 16:45:49
SWDEV-79445 - OCL generic changes and code clean-up
	- Disable suballocations until regressions will be resolved

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#286 edit
2018-03-19 16:56:49 -04:00
foreman fe3f2b7e5d P4 to Git Change 1528961 by cpaquot@cpaquot-ocl-lc-lnx on 2018/03/19 13:43:08
SWDEV-145570 - Contexts
	Create one amd::Context per device
	g_context is now thread's current context
	HIP doesn't want more than one context per device so we always use the primary one

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#4 edit
2018-03-19 13:52:17 -04:00
foreman 3683b3d03c P4 to Git Change 1528884 by vsytchen@vsytchen-ocl-win10 on 2018/03/19 11:36:48
SWDEV-133818 - PAL support for Linux Pro: Coarse Grain SVM for OpenCL 2.0

	1. This change enables OCL 2.0 on Linux for devices using PAL backend.
	2. Set the alignment for Coarse Grain SVM allocations to be the gpu fragment size (2MB on Linux).

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#52 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#46 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#128 edit
2018-03-19 11:55:32 -04:00
Maneesh Gupta 51ed222aa4 Merge pull request #373 from gargrahul/fix_function_not_found_tex_drv_sample
Fixed function not found issue in texture driver api sample
2018-03-19 14:11:28 +05:30
foreman 320062f843 P4 to Git Change 1528532 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/17 03:00:05
SWDEV-2 - Change OpenCL version number from 2612 to 2613.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2360 edit
2018-03-17 03:11:29 -04:00
Rahul Garg 2184e7f6da Removed hidden args and hipLaunchParm from HIP/HCC path 2018-03-16 22:50:25 +05:30
Jenkins 6c39e1561c Merge 'master' into 'amd-master'
Change-Id: If86cc472ef0330ab9f8c19e68cb6fcf83b502d16
2018-03-16 04:10:29 -05:00
Rahul Garg da66236083 Change co file name 2018-03-16 12:54:44 +05:30
foreman e74383ba6e P4 to Git Change 1528119 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/16 03:00:05
SWDEV-2 - Change OpenCL version number from 2611 to 2612.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2359 edit
2018-03-16 03:12:59 -04:00
Rahul Garg 2ff9e5d46d Fixed function not found issue 2018-03-16 12:35:25 +05:30
Maneesh Gupta eabd89f130 Merge pull request #372 from scchan/fix_hipcc_rhel
On RHEL and CentOS, don't use libc++ since we are using the devtoolse…
2018-03-16 07:44:40 +05:30
Maneesh Gupta c50f3caf5e Merge pull request #367 from gargrahul/fix_tex_drv_offset
Fix offset issue in texture driver APIs
2018-03-16 07:43:48 +05:30
foreman 7ae94da05b P4 to Git Change 1527848 by gandryey@gera-w8 on 2018/03/15 17:11:43
SWDEV-79445 - OCL generic changes and code clean-up
	- Add suballocations support for local(invisible) memory. It should significantly improve memory footprint and TLB usage with 2MB pages
	- Implementation uses BuddyAllocator provided in PAL
	- The chunk allocation size is 64MB, min allocation 4KB and max 4MB. GPU_MAX_SUBALLOC_SIZE controls the max size in KB

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#33 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#76 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#56 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#77 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#285 edit
2018-03-15 17:26:25 -04:00
Siu Chi Chan 0501f6c582 On RHEL and CentOS, don't use libc++ since we are using the devtoolset-7 which has a newer g++ 2018-03-15 16:46:01 -04:00
foreman c4a81872f3 P4 to Git Change 1527474 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/15 03:00:05
SWDEV-2 - Change OpenCL version number from 2610 to 2611.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2358 edit
2018-03-15 03:10:56 -04:00
Maneesh Gupta b0464ab365 Merge pull request #369 from mangupta/update_hip_base_packaging
Add lpl and ca binaries to hip_base package
2018-03-15 06:05:11 +05:30
Maneesh Gupta 783a1cd614 Merge pull request #368 from mangupta/apply_clangformat
Apply .clangformat to all repo source files
2018-03-15 06:04:43 +05:30
foreman 41c27a9e24 P4 to Git Change 1527320 by cpaquot@cpaquot-ocl-lc-lnx on 2018/03/14 18:54:10
SWDEV-145570 - Remove all g_context from runtime device implementation

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#3 edit
2018-03-14 19:05:10 -04:00
Maneesh Gupta 3bc46613d7 Merge pull request #371 from ROCm-Developer-Tools/mangupta-patch-1
[ci] Continue testing against ROCm 1.6
2018-03-14 15:39:50 +05:30
Maneesh Gupta 4b5526e0ba [ci] Continue testing against ROCm 1.6
Continue testing against ROCm 1.6.4 until we have a stable ROCm 1.7.x docker image
2018-03-14 15:24:15 +05:30
foreman 4b9a657cb6 P4 to Git Change 1526783 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/14 03:00:04
SWDEV-2 - Change OpenCL version number from 2609 to 2610.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2357 edit
2018-03-14 03:11:36 -04:00
Maneesh Gupta e8f1aeb764 Add lpl and ca binaries to hip_base package
Change-Id: Ie05669768dfd086a89bcf4aad134f4b425d1e21c
2018-03-14 11:42:36 +05:30
foreman df8dfbd060 P4 to Git Change 1526407 by cpaquot@cpaquot-ocl-lc-lnx on 2018/03/13 12:24:51
SWDEV-145570 - [HIP] Separate device runtime and driver APIs

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#1 add
2018-03-13 12:33:01 -04:00
Jenkins 95deeffc67 Merge 'master' into 'amd-master'
Change-Id: I214887e5eb990b58bde1da3f87eaa77cd22ba9cb
2018-03-13 04:10:02 -05:00
Maneesh Gupta 9e47fccc89 Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
2018-03-12 11:29:03 +05:30
Rahul Garg c3d786d810 Set offset value to 0 2018-03-11 00:12:22 +05:30
foreman 1376dc8503 P4 to Git Change 1525343 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/10 03:00:07
SWDEV-2 - Change OpenCL version number from 2608 to 2609.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2356 edit
2018-03-10 03:10:23 -05:00
foreman 9e5f869e1c P4 to Git Change 1524852 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/09 03:00:13
SWDEV-2 - Change OpenCL version number from 2607 to 2608.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2355 edit
2018-03-09 03:08:04 -05:00
Maneesh Gupta eee7fa6072 Merge pull request #363 from gargrahul/surface_object_api
Added surface object support
2018-03-09 11:50:30 +05:30
foreman 953d3c86e0 P4 to Git Change 1524674 by gandryey@gera-w8 on 2018/03/08 17:26:08
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove pinOffset_ field, since the pinning offset can be combined with global offset_ field

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#75 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#16 edit
2018-03-08 17:37:53 -05:00
foreman 3c0e80074b P4 to Git Change 1524559 by asalmanp@asalmanp-ocl-stg on 2018/03/08 14:18:24
SWDEV-132899 - [gfx10][OCL]- Adding support for forcing WaveSize32 from runtime for testing on gfx10 HW emulator

	Motivation: During testing ocltst on Windows on PAL/HSAIL/SC path on gfx10 HW emulator, it was found that SC uses WaveSize64 by default for compute kernels.
	SC also has an interface that can be used for forcing the WaveSize to 32 or 64.

	- Adding the "-force-wave-size-32" into compiler to be passed down to Finalizer/SC
	- Adding environment variable "GPU_FORCE_WAVE_SIZE_32" that can be used from runtime to force WaveSize32 compilation in HSAIL/SC path

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/hsail_be.cpp#69 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#138 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#55 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#284 edit
2018-03-08 14:26:17 -05:00
foreman 5bec004355 P4 to Git Change 1524286 by johtaylo@johtaylo-jtincrementor2-increment on 2018/03/08 03:00:06
SWDEV-2 - Change OpenCL version number from 2606 to 2607.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2354 edit
2018-03-08 03:14:05 -05:00