Commit Graph

13197 Commits

Author SHA1 Message Date
foreman 402f99f3e6 P4 to Git Change 1547415 by gandryey@gera-w8 on 2018/04/27 16:14:51
SWDEV-79445 - OCL generic changes and code clean-up
	- Persistent memory failure could be propagated to the app without the second attempt after resource cache release. Try to allocate memory again after resource cache release.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#65 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#23 edit
2018-04-27 16:22:03 -04:00
Deven Desai 30f0c19cf1 Fixing a copy/paste error in my previous checkin 2018-04-27 12:59:51 +00:00
foreman ddecac46a9 P4 to Git Change 1547064 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/27 03:00:07
SWDEV-2 - Change OpenCL version number from 2640 to 2641.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2388 edit
2018-04-27 03:07:27 -04:00
foreman fa3460a862 P4 to Git Change 1546955 by vsytchen@vsytchen-ocl-win10 on 2018/04/26 18:13:03
SWDEV-151646 - [Win7_64][VEGA 10] Hard hang/blank screen observed while executing PC MARK8 (Video group chart)

	1. Revert to using max number of command buffers for device queue.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#95 edit
2018-04-26 18:18:28 -04:00
foreman ca538dfa45 P4 to Git Change 1546804 by skudchad@skudchad_test2_win_opencl on 2018/04/26 14:28:38
SWDEV-145570 - [HIP] - Enable SVM mode if BUILD_HIP is defined.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#87 edit
2018-04-26 14:51:10 -04:00
foreman 79ba5904dc P4 to Git Change 1546657 by gandryey@gera-w8 on 2018/04/26 10:59:34
SWDEV-151739 - [CQE OCL][DTB][Perf][QR][DTB-BLOCKER][VEGA10] Upto 18% performance drop observed while running Video Composition test sub test of Compubench due to faulty CL#1544622
	- Implement customized TS tracking for managed buffers. The common TS tracking mechanism saves the event of the last command, assuming SDMA and compute operations occur in order, but for managed buffers it's not the case. Also managed buffer doesn't have to validate TS for the parent resource.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.hpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#22 edit
2018-04-26 11:13:29 -04:00
foreman d6618edf9f P4 to Git Change 1546499 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/26 03:00:09
SWDEV-2 - Change OpenCL version number from 2639 to 2640.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2387 edit
2018-04-26 03:11:27 -04:00
Deven Desai 76e808304c Checkin to add unit tests for fixes in my previous commit
This change adds unit tests for

1. __hisinf
2. __hisnan
2. abs(long long)
3. lgamma(double)
2018-04-25 17:53:21 +00:00
foreman 9aef0311c1 P4 to Git Change 1546224 by skudchad@skudchad_test2_win_opencl on 2018/04/25 12:24:40
SWDEV-145570 - [HIP] - Add hipMemcpyTo/FromArray APIs.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#12 edit
2018-04-25 12:32:11 -04:00
foreman 3416ad385d P4 to Git Change 1546206 by gandryey@gera-w8 on 2018/04/25 11:32:37
SWDEV-151852 - [CQE OCL][DTB-BLOCKER][VEGA10][WIN][LNX][QR] Observed crash while running Multiple device context test due to FAULTY CL#1544622
	- Add a check for nullptr in case if virtual device object was destroyed before memory allocation

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#10 edit
2018-04-25 11:40:42 -04:00
foreman b785abe728 P4 to Git Change 1546034 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/25 03:00:07
SWDEV-2 - Change OpenCL version number from 2638 to 2639.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2386 edit
2018-04-25 03:08:38 -04:00
Rahul Garg 720e209366 Fix gcc build issues for host code 2018-04-25 12:30:11 +05:30
foreman 1c91644f1b P4 to Git Change 1545906 by gandryey@gera-lnx-rcf on 2018/04/24 19:10:41
SWDEV-79445 - OCL generic changes and code clean-up
	- Report an error if persistent memory allocation failed. The original logic was switching to local memory, but SSG can't work with it. The logic should work properly under Linux, but in Windows OS never fails persistent allocation.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#86 edit
2018-04-24 19:17:55 -04:00
foreman 2f41f41977 P4 to Git Change 1545895 by gandryey@gera-w8 on 2018/04/24 18:25:56
SWDEV-79445 - OCL generic changes and code clean-up
	- Replace dynamic memory object allocation for the managed buffer with a preallocated object

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#298 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#64 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#94 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#50 edit
2018-04-24 18:35:32 -04:00
foreman 894f01c206 P4 to Git Change 1545859 by cpaquot@cpaquot-ocl-lc-lnx on 2018/04/24 16:44:17
SWDEV-145570 - [HIP] Get hipCtx_simple to pass
	Implemented hipCtxGetDevice
	hipCtxCreate must push the created context onto the context stack
	hipCtxDestroy must check if the top of the stack is the context being destroy
	and not just pop the top of the stack w/o checking.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#8 edit
2018-04-24 16:49:38 -04:00
Paul 56734306ed Add host and device targets 2018-04-24 14:04:24 -05:00
Evgeny Mankov bfee03f95b [HIPIFY] Sync with HIP (Execution Control, Surfaces, Memory)
Execution Control [deprecated since 7.0]:
cudaConfigureCall -> hipConfigureCall
cudaLaunch -> hipLaunchByPtr
cudaSetupArgument -> hipSetupArgument

Surfaces (partially):
cudaSurfaceObject_t -> hipSurfaceObject_t
cudaSurfaceBoundaryMode -> hipSurfaceBoundaryMode
cudaCreateSurfaceObject -> hipCreateSurfaceObject
cudaDestroySurfaceObject -> hipDestroySurfaceObject

Memory Management:
cudaMemset2DAsync -> hipMemset2DAsync
2018-04-24 22:04:04 +03:00
Deven Desai 65a90c55e7 Checkin to fix bugs in math functions.
This change fixes the following bugs that were discovered while debuggnig TF unit test failures (cwise_ops_test)

1. __hisinf and __hisnan routines
   Both had incorrect implementations.

2. abs
   A "long long" (64bit int) version was missing, resulting in the 32bit version being used for 64bit ints (which resulted in incorrect results, when the value passed in was outside the 32bit int range)

3. lgamma
  We seemed to have a custom version for the 'double' datatype (which was giving incorrect results). Replaced it with a call to the 'double' version of the underlying 'hc::precision_math::lgamma'
2018-04-24 18:10:07 +00:00
foreman 5eace16718 P4 to Git Change 1545750 by skudchad@skudchad_test2_win_opencl on 2018/04/24 13:55:57
SWDEV-145570 - [HIP] - Add some hip_mem* APIs. Part 2.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#11 edit
2018-04-24 14:05:20 -04:00
foreman 03b72c3007 P4 to Git Change 1545468 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/24 03:00:20
SWDEV-2 - Change OpenCL version number from 2637 to 2638.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2385 edit
2018-04-24 03:06:15 -04:00
foreman 30088df072 P4 to Git Change 1545280 by gandryey@gera-w8 on 2018/04/23 16:17:52
SWDEV-79445 - OCL generic changes and code clean-up
	- Switch scheduler parameters to the managed buffer allocation
	- Use 8 bytes for the mem clear pattern in the program loader
	- Use local memory for the hsa queue data

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#63 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#93 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#49 edit
2018-04-23 16:25:48 -04:00
Aaron Enye Shi 1149f88413 Remove unsupported targets gfx801 and gfx802
These architectures are no longer supported. Should not compile for them.
2018-04-23 15:25:35 -04:00
foreman 6a47463986 P4 to Git Change 1545170 by gandryey@gera-w8 on 2018/04/23 14:12:50
SWDEV-79445 - OCL generic changes and code clean-up
	- Make all device locks mutable to avoid extra mem allocation calls

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#85 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#27 edit
2018-04-23 14:27:48 -04:00
Evgeny Mankov 14a95fc231 Merge pull request #413 from emankov/master
[HIPIFY] undo apply .clangformat to HIPIFY source files
2018-04-23 20:29:43 +03:00
Evgeny Mankov ad28f72ca9 [HIPIFY] undo apply .clangformat to HIPIFY source files 2018-04-23 20:22:15 +03:00
foreman 5fd508c342 P4 to Git Change 1544934 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/23 03:00:06
SWDEV-2 - Change OpenCL version number from 2636 to 2637.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2384 edit
2018-04-23 03:08:15 -04:00
foreman db522a2fbc P4 to Git Change 1544858 by skudchad@skudchad_rocm on 2018/04/22 21:07:25
SWDEV-144570 - [HIP] - Fix a few APIs and typos.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#6 edit
2018-04-22 21:17:27 -04:00
foreman 97bb6b1058 P4 to Git Change 1544683 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/21 03:00:05
SWDEV-2 - Change OpenCL version number from 2635 to 2636.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2383 edit
2018-04-21 03:09:15 -04:00
foreman 392724cc3f P4 to Git Change 1544622 by gandryey@gera-w8 on 2018/04/20 17:02:52
SWDEV-79445 - OCL generic changes and code clean-up
	- Add managed buffer support and replace all uploads with the managed buffer allocations
	- Add staging copy for small image writes
	- Replace constant buffer in FillBuffer with a managed buffer also

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.hpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.hpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#84 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#26 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#63 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#92 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#48 edit
2018-04-20 17:08:29 -04:00
Rahul Garg a68b9b6bf6 Added deprecation note in cuCtx section 2018-04-20 22:43:58 +05:30
Rahul Garg bc61260168 Moved deprecated macro to the end 2018-04-20 21:57:23 +05:30
Lakhan Singh 74faa61d52 SWDEV-141024 2018-04-20 17:40:00 +05:30
Rahul Garg 89674c54a7 Mark hipCtx APIs as deprecated 2018-04-20 17:34:48 +05:30
foreman b5ee2e3b84 P4 to Git Change 1544170 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/20 03:00:05
SWDEV-2 - Change OpenCL version number from 2634 to 2635.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2382 edit
2018-04-20 03:09:03 -04:00
foreman 22439e8644 P4 to Git Change 1544061 by skudchad@skudchad_test2_win_opencl on 2018/04/19 18:24:45
SWDEV-145570 - [HIP] - Add some hip_mem* APIs

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#10 edit
2018-04-19 18:35:00 -04:00
foreman d532cc2b66 P4 to Git Change 1543751 by cpaquot@cpaquot-ocl-lc-lnx on 2018/04/19 11:17:02
SWDEV-145570 - [HIP] Implemented a bunch of texture APIs

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#5 edit
2018-04-19 12:27:09 -04:00
foreman 47493390a2 P4 to Git Change 1543459 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/19 03:00:05
SWDEV-2 - Change OpenCL version number from 2633 to 2634.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2381 edit
2018-04-19 03:16:49 -04:00
Maneesh Gupta 4770abf00e Merge pull request #404 from gargrahul/hipMemset2DAsync_support
Added hipMemset2DAsync support
2018-04-18 14:19:41 +05:30
Rahul Garg a898ccfb3f Resolve tex1D float to int conversion issue 2018-04-18 14:15:18 +05:30
Rahul Garg fcc0866681 Added hipMemset2DAsync support 2018-04-17 18:27:27 +05:30
Jenkins 9226f981ab Merge 'master' into 'amd-master'
Change-Id: I599b0d1176a11c635c8b16c395d15677bd431fb5
2018-04-17 04:09:48 -05:00
foreman c01db678a6 P4 to Git Change 1542065 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/17 03:00:10
SWDEV-2 - Change OpenCL version number from 2632 to 2633.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2380 edit
2018-04-17 03:09:08 -04:00
Maneesh Gupta 72ff4c5cc4 Merge pull request #400 from gargrahul/hipModule_cleanup
hip_module code cleanup
2018-04-17 09:00:15 +05:30
Aaron Enye Shi a004c8dfa2 Clean up triple_to_hsa_isa naming (#403) 2018-04-17 06:47:55 +05:30
foreman 17d153a162 P4 to Git Change 1541938 by cpaquot@cpaquot-ocl-lc-lnx on 2018/04/16 18:27:17
SWDEV-145570 - [HIP] Set/GetDevice and Create/DestroyTextureObject
	Implemented Set/GetDevice relying on g_context (current context)
	Implemented create linear/2D texture object function
	Implemented hipDestroyTextureObject

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#4 edit
2018-04-16 18:37:17 -04:00
Rahul Garg c23898f49b hip_module code cleanup
-Fixed missing ihipLogStatus in hipModuleLoad()
-Fixed some ihipXXX functions
2018-04-16 15:35:04 +05:30
Aaron Enye Shi 21382e361c Fix bug when using older rocr naming (#399) 2018-04-14 15:47:46 +05:30
foreman f510dde1ab P4 to Git Change 1541271 by johtaylo@johtaylo-jtincrementor2-increment on 2018/04/14 03:00:04
SWDEV-2 - Change OpenCL version number from 2631 to 2632.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2379 edit
2018-04-14 03:16:41 -04:00
foreman aec786cfdb P4 to Git Change 1541197 by skudchad@skudchad_test2_win_opencl on 2018/04/13 17:49:07
SWDEV-145570 - [HIP] -  Add missing HIP APIs and  fill sym table references. The HIP tests can now build if we do a symlink to libhip_hcc.so that we build with VDI in the install folder in github HIP.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#3 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#3 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#7 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_profile.cpp#1 add
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#3 edit
2018-04-13 18:19:28 -04:00
foreman 1e6de03652 P4 to Git Change 1540998 by gandryey@gera-lnx-rcf on 2018/04/13 11:34:46
SWDEV-150303 - [CQE OCL][Vega10][PAL][QR][DTB-Blocker] Maya 2018 fails to load OpenCL device on Vega10 Lnx-Pro; Faulty CL#1528486
	- Temporarly disable SVM under Linux, until a proper fix for VA reservation will be developed

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#83 edit
2018-04-13 11:43:02 -04:00