Commit Graph

13222 Commits

Author SHA1 Message Date
Ben Sander 0e5cfed3eb Update gitignore for some common output files
Change-Id: I9cd60f042af4dba07fe0fdbd2ee442936ff8c7bd
2016-11-06 04:26:15 -06:00
Ben Sander f3d38c2615 Improve Peer support and testing.
Change-Id: Icadc65988aaf145a265587ab0357c5bf4d26f3eb
2016-11-06 03:22:36 -06:00
foreman 4d705d6ca0 P4 to Git Change 1337201 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/06 02:00:04
SWDEV-2 - Change OpenCL version number from 2266 to 2267.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2013 edit
2016-11-06 02:06:11 -05:00
foreman 0d9068fa5a P4 to Git Change 1337110 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/05 03:00:03
SWDEV-2 - Change OpenCL version number from 2265 to 2266.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2012 edit
2016-11-05 03:11:03 -04:00
Ben Sander 06ecfa3975 Set forceHostCopyEngine for other copy dirs. Support HIP_FORCE_P2P_HOST
Also: more debug for copy and P2p.

Change-Id: I87030c525410e041b2a00baaf6c68e6c0977ff42
2016-11-04 19:53:23 -05:00
foreman b8040b3d6a P4 to Git Change 1337009 by gandryey@gera-w8 on 2016/11/04 18:04:52
SWDEV-79445 - OCL generic changes and code clean-up
	- Use uint64_t for the scratch buffer size calculation

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#558 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#162 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#175 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.h#63 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#13 edit
2016-11-04 18:18:13 -04:00
Ben Sander 60a8a5405d Expand hipP2PSimple testing.
Cover cases where P2P is used for H2D copies, where host is pinned
but not accessible to the copy agent.

Change-Id: I9464b787228b40f93473708c3fde9726e1986365
2016-11-04 16:13:32 -05:00
Ben Sander 926e63c655 Refactor resolve-mem step1
Change-Id: I7b8b2bbb56d7b31a97b48ebd42002641cd07a460
2016-11-04 09:37:56 -05:00
Ben Sander 00276d141e Add debug for Peer APIs. Enable PeerMemcpy APIs by default.
Change-Id: I46e39a9e7b07686a78484c1f3b5495b08e052fbb
2016-11-04 08:51:16 -05:00
Ben Sander 44aee4b61c Print non-peers too
Change-Id: I2a6905edcdf144aa732ae3120c17780477f232ac
2016-11-04 06:34:07 -05:00
Ben Sander d1db786910 Pre-pend HIP_PATH/lib to linker, so we find developer object code
Previously might pick up libs from /opt/rocm/lib.

Change-Id: Ia7adb345defe433d5952aa61706fe03fd7cbcd35
2016-11-04 06:06:04 -05:00
foreman 0794d6b50b P4 to Git Change 1336502 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/04 03:00:03
SWDEV-2 - Change OpenCL version number from 2264 to 2265.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2011 edit
2016-11-04 02:06:26 -05:00
foreman 065133bbc0 P4 to Git Change 1336353 by lmoriche@lmoriche_opencl_dev on 2016/11/03 18:47:50
SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL
	- Finish the implementation of the program manager to support separare compilation and binary loading.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#13 edit
2016-11-03 18:56:31 -04:00
foreman 30b62e264c P4 to Git Change 1336294 by gandryey@gera-w8 on 2016/11/03 17:50:35
SWDEV-86035 - Add PAL backend to OpenCL
	- Use size() method in the segment freeze instead of vmSize(), because vmSize() is aligned in PAL and different heaps may have different alignments

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#21 edit
2016-11-03 18:14:18 -04:00
foreman 4d82398e1f P4 to Git Change 1336110 by gandryey@gera-w8 on 2016/11/03 15:21:09
SWDEV-86035 - Add PAL backend to OpenCL
	- Update printf initialization to match the GSL backend

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#22 edit
2016-11-03 15:41:39 -04:00
foreman 9227e8ede5 P4 to Git Change 1335811 by lmoriche@lmoriche_opencl_lc on 2016/11/03 03:28:18
SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL
	- Fix the corrupted HSACO file when using -save-temps/-save-temps-all on Windows.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#20 edit
2016-11-03 02:35:28 -05:00
foreman 99b5c92998 P4 to Git Change 1335796 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/03 03:00:11
SWDEV-2 - Change OpenCL version number from 2263 to 2264.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2010 edit
2016-11-03 03:11:48 -04:00
pensun 212fa7033c Update document for workaround suggestion on threadfence_system()
Change-Id: Icccab8270604a0e578a8614b9afb3f95372f4966
2016-11-02 16:08:27 -05:00
foreman 5208f758c7 P4 to Git Change 1335201 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/02 03:00:03
SWDEV-2 - Change OpenCL version number from 2262 to 2263.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2009 edit
2016-11-02 03:06:44 -04:00
pensun 9f86e47800 Update hipStreamNonBlocking to use cuda define on NV path
Change-Id: I74ea09db99d602ba1c5f192b36ff7f2781176e6a
2016-11-01 20:30:56 -05:00
foreman 248840bd54 P4 to Git Change 1335043 by lmoriche@lmoriche_opencl_dev on 2016/11/01 19:59:01
SWDEV-94611 - [OCL-LC-ROCm] Add "HSAIL" or "LC" to the driver version string to tell which stack is used.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#24 edit
2016-11-01 20:05:34 -04:00
Aditya Atluri f097b6ef81 added inter thread data movement intrinsics
Change-Id: I2a8a8ed49429cb7f96439bd28c4b83b5142737df
2016-11-01 16:37:33 -05:00
foreman 3bfd6767a3 P4 to Git Change 1334942 by gandryey@gera-w8 on 2016/11/01 16:33:53
SWDEV-106446 - OpenCL constant address space limit control
	- Use maxMemAllocSize for the maximum constant buffer size
	http://ocltc.amd.com/reviews/r/11725/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#557 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#23 edit
2016-11-01 16:01:35 -05:00
foreman cc2e2a0a0c P4 to Git Change 1334447 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/01 03:00:04
SWDEV-2 - Change OpenCL version number from 2261 to 2262.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2008 edit
2016-11-01 03:11:05 -04:00
Rahul Garg 81c91f5b0b Added hipDeviceGetByPCIBusId in hip/hcc path
Change-Id: I3cca0dc533d0281689d8a407c7da16ca1ba6a3a8
2016-11-01 10:57:48 +05:30
foreman a214437836 P4 to Git Change 1334142 by gandryey@gera-ocl-lc on 2016/10/31 14:17:14
SWDEV-86035 - Add PAL backend to OpenCL
	- Fix 2 warnings with LC path

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#19 edit
2016-10-31 14:30:53 -04:00
foreman b925842e4e P4 to Git Change 1333973 by rili@rili-opencl-pal-stg on 2016/10/31 10:41:30
SWDEV-95903 -  Implement SVM on PAL feature.
	1. Implement SVM Coarse Grain
	2. Implement SVM Fine Grain Buffer

	Review:http://ocltc.amd.com/reviews/r/11706/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#36 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#259 edit
2016-10-31 10:47:23 -04:00
foreman a432789fb0 P4 to Git Change 1333856 by johtaylo@johtaylo-jtincrementor-increment on 2016/10/31 03:00:04
SWDEV-2 - Change OpenCL version number from 2260 to 2261.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2007 edit
2016-10-31 03:07:21 -04:00
foreman d6210f3d55 P4 to Git Change 1333758 by johtaylo@johtaylo-jtincrementor-increment on 2016/10/30 03:00:04
SWDEV-2 - Change OpenCL version number from 2259 to 2260.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2006 edit
2016-10-30 03:10:54 -04:00
foreman bfa0af8a32 P4 to Git Change 1333731 by johtaylo@johtaylo-jtincrementor-increment on 2016/10/29 03:00:04
SWDEV-2 - Change OpenCL version number from 2258 to 2259.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2005 edit
2016-10-29 03:15:45 -04:00
foreman 55cab0cc96 P4 to Git Change 1333693 by gandryey@gera-dev-w7 on 2016/10/28 18:25:31
SWDEV-86035 - Add PAL backend to OpenCL
	- Use size_t for hidden arguments

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#21 edit
2016-10-28 18:38:30 -04:00
foreman 1b76bd77fe P4 to Git Change 1333465 by gandryey@gera-w8 on 2016/10/28 13:16:32
SWDEV-95922 - OpenCL on PAL - GL/Depth interop
	- Apply a workaround for interop with D24S8 format

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#16 edit
2016-10-28 13:26:03 -04:00
Evgeny Mankov e1812a1319 [HIPIFY] wrap kernel name with HIP_KERNEL_NAME macros...
only in case of commas in it.
2016-10-28 20:05:51 +03:00
Evgeny Mankov 3101c26d14 * [HIPIFY] Initial Profiler support.
CUDA Driver API porting to HIP:

+ cuProfilerStart, cuProfilerStop.
- cuProfilerInitialize & cudaProfilerInitialize - unsupported yet by HIP.
2016-10-28 18:32:13 +03:00
Ben Sander 9edaf0e3f7 add hip_profile.h
Change-Id: Id43a4336db53567020584cb7842baf5c1649fd8e
2016-10-28 07:08:46 -05:00
Maneesh Gupta c26f5d7d5a hipdemangleatp: Try handling HC kernels as well
Change-Id: Ie438ddd28e5bc6067fcd682df849d3183046b40a
2016-10-28 15:46:59 +05:30
foreman e6ff7010a9 P4 to Git Change 1333223 by lmoriche@lmoriche_opencl_lc on 2016/10/28 04:53:46
SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL
	- Try to find the LLVM_BIN from the current module's path

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#8 edit
2016-10-28 04:59:38 -04:00
Maneesh Gupta 1f08f2adaf CMakeLists.txt: Update include paths needed for Fedora support
Change-Id: Ib84f9dba30d2c64f344d6f8e85ddbe15f30af1a0
2016-10-28 14:12:53 +05:30
Maneesh Gupta 0d8aa10473 hipcc: Update flags for Fedora support
Change-Id: I90be7768410e491b4f11c3b0f08470246d781d80
2016-10-28 14:12:13 +05:30
foreman b3c63c5fb5 P4 to Git Change 1333198 by lmoriche@lmoriche_opencl_dev on 2016/10/28 04:01:59
SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL
	- Suppress the assertion message box on windows by default.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/runtime.cpp#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#258 edit
2016-10-28 04:06:50 -04:00
foreman cf999bdd0b P4 to Git Change 1333184 by johtaylo@johtaylo-jtincrementor-increment on 2016/10/28 03:00:05
SWDEV-2 - Change OpenCL version number from 2257 to 2258.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2004 edit
2016-10-28 03:13:25 -04:00
foreman 47ec8d3e89 P4 to Git Change 1333167 by lmoriche@lmoriche_opencl_dev on 2016/10/28 02:41:50
SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL
	- Remove cl_khr_depth_images from the extension list for CL2.0 since it is already defined in opencl-c.h

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#12 edit
2016-10-28 02:55:43 -04:00
Ben Sander 3d0fa30183 Print short hipLaunchKernel correctly.
Change-Id: I6ca03d7c707cd03d6982199830213953d5855f17
2016-10-27 23:09:32 -05:00
Ben Sander 18dbafe6e8 Add initial hipProfileStart/Stop
And modify sample to show how to use.
Still needs some work to understand interaction with CXL.

Change-Id: I2579824d2dd7863ea23874d34f0dabb3cb305d3e
2016-10-27 23:09:32 -05:00
Ben Sander 08c08d6f9c show how to use variety of HIP_PROFILE features
Change-Id: I6edd66ac4c068b64e1dc3787d7f1f69ab3238469
2016-10-27 23:09:32 -05:00
Ben Sander 1d5034f583 Add two levels of HIP_PROFILE_API (1=short,2=long)
Change-Id: I7ef98589f8731fb879db109fd573c62b489f2b61
2016-10-27 23:09:31 -05:00
Ben Sander e57baf8d95 HIPCC adds paths to profiler include and libs by default.
Users who desire otherwise can set HIP_ATP_MARKER=0.
Also remove old unused hipcc_explicit_lib option.

Change-Id: I2bf07ba880329e7a3b1365dd33a3b2be6794370f
2016-10-27 23:09:31 -05:00
Ben Sander 5b7da93e61 Add new hipdemangleatp and snapshot sample update for new functionality
Change-Id: Ie19c683b2b0bdfeb0c3fcf89444c2e21b7f606e7
2016-10-27 23:09:31 -05:00
Ben Sander 90adf98a7e Fix scoped marker so begin/end ATP timestamps correct
Change-Id: Ic944d3fc00d7bc31b756c0e6c327b99eb489537e
2016-10-27 23:09:31 -05:00
Ben Sander f7c42efa3f Rename HIP_ATP_MARKER and profiling vars
HIP_PROFILE_API
HIP_DB_START_API
HIP_DB_STOP_API

Change-Id: I6c4da67212ff8217e6356a2622d4c6278a188c34
2016-10-27 23:09:31 -05:00