Commit Graph

13557 Commits

Author SHA1 Message Date
949f45ac 9210263727 Provide correct __mul64hi and __umul64hi builtins, using code from ROCm-Device-Libs 2018-05-14 08:34:56 +02:00
foreman 5b88e43a07 P4 to Git Change 1553963 by johtaylo@johtaylo-jtincrementor2-increment on 2018/05/12 03:00:06
SWDEV-2 - Change OpenCL version number from 2652 to 2653.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2400 edit
2018-05-12 03:11:59 -04:00
Alex Voicu fcce9f5337 Switch over to using native vector types, for better codegen. Remove noise. 2018-05-12 00:14:17 +01:00
foreman c6b9701abb P4 to Git Change 1553709 by cpaquot@cpaquot-ocl-lc-lnx on 2018/05/11 11:24:30
SWDEV-145570 - [HIP] Make streamSet global and protect it
	By default from the spec, streamSet should be global and not per thread.
	There is a flag to make it per thread but we don't handle this yet. We
	would just add another variable that will be thread local and use it instead.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#11 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#8 edit
2018-05-11 11:34:01 -04:00
Aaron Enye Shi 4488f9f7a7 Fix hipMathFunction for gfx906 2018-05-11 10:53:07 -04:00
Alex Voicu eded014abc Don't use magic constants, they're evil.
Also clarify that the register count cannot be queried at the moment.
2018-05-11 11:31:46 +01:00
foreman 134cf09cd2 P4 to Git Change 1553539 by johtaylo@johtaylo-jtincrementor2-increment on 2018/05/11 03:01:50
SWDEV-2 - Change OpenCL version number from 2651 to 2652.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2399 edit
2018-05-11 03:10:53 -04:00
Alex Voicu bf9529aaa8 Add support for the hipFuncGetAttributes interface. 2018-05-11 03:35:10 +01:00
Siu Chi Chan 368affcea4 initial gfx906 support 2018-05-10 19:28:00 +00:00
foreman e56e3ce677 P4 to Git Change 1553193 by gandryey@gera-lnx-rcf-lc on 2018/05/10 13:55:21
SWDEV-79445 - OCL generic changes and code clean-up
	- Following CL#1552596. Add a flag to skip memory allocation. ROCr backend requires access to the parent object in the blit manager, but it's not fully initialized and a view creation is required. However a view creation with not fully initialized object can cause a dead lock if device memory is allocated during the object create.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#132 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#104 edit
2018-05-10 14:03:44 -04:00
foreman 522de89190 P4 to Git Change 1553162 by asalmanp@asalmanp-ocl-stg on 2018/05/10 12:34:13
SWDEV-132899 - [OCL][GFX10] Adding perfcounter support

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#16 edit
2018-05-10 12:42:46 -04:00
Evgeny Mankov e3568a744d Merge pull request #443 from emankov/cuDNN
[HIPIFY][DNN] support of cuDNN 7.1.3 - continuation
2018-05-10 19:42:05 +03:00
foreman abce67d1d3 P4 to Git Change 1553088 by gandryey@gera-w8 on 2018/05/10 10:58:01
SWDEV-79445 - OCL generic changes and code clean-up
	- define WITH_LIQUID_FLASH. Currently it's not a part of makefile setup

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#51 edit
2018-05-10 11:06:28 -04:00
Evgeny Mankov b31df9cc60 [HIPIFY][DNN] support of cuDNN 7.1.3 - continuation
- not finished yet.
- based on https://github.com/ROCmSoftwarePlatform/hipDNN.
- testing on https://github.com/baidu-research/DeepBench.
2018-05-10 17:36:51 +03:00
foreman b94a2c2cc8 P4 to Git Change 1552942 by johtaylo@johtaylo-jtincrementor2-increment on 2018/05/10 03:00:10
SWDEV-2 - Change OpenCL version number from 2650 to 2651.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2398 edit
2018-05-10 03:09:22 -04:00
foreman 1426982a65 P4 to Git Change 1552807 by skudchad@skudchad_test2_win_opencl on 2018/05/09 18:08:07
SWDEV-145570 - [HIP] - Release a stream first before taking it off from the set.
	- Queue::create() needs to be called before returning a valid queue.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#7 edit
2018-05-09 18:15:41 -04:00
foreman 087fe82206 P4 to Git Change 1552790 by gandryey@gera-w8 on 2018/05/09 17:18:25
SWDEV-79445 - OCL generic changes and code clean-up
	- Following CL#1552596. Keep memory validation check for GL acquire command, since it also has GL acquire call in it.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#85 edit
2018-05-09 17:26:59 -04:00
foreman c11b2d52b7 P4 to Git Change 1552704 by gandryey@gera-w8 on 2018/05/09 15:11:23
SWDEV-79445 - OCL generic changes and code clean-up
	- Following CL#1552596. Make sure virtual GPU is set for the internal allocations before the create() call, since the deferred alloc is disabled.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpublit.cpp#128 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#416 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.hpp#144 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#96 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#21 edit
2018-05-09 15:16:40 -04:00
foreman 61d898a8a5 P4 to Git Change 1552596 by gandryey@gera-w8 on 2018/05/09 11:58:01
SWDEV-79445 - OCL generic changes and code clean-up
	- Disable deferred allocations for single device in order to disable validation code in the dispatch. Improves batch speed in the OCLPerfKernelArguments test upto 10% in some subtests

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#84 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#131 edit
2018-05-09 12:20:05 -04:00
Jenkins 3df55f552f Merge 'master' into 'amd-master'
Change-Id: Ic79e86ea3cd8cd7f85d7f9f2a24e6acfad02d942
2018-05-09 04:09:39 -05:00
foreman 580cbe043f P4 to Git Change 1552345 by johtaylo@johtaylo-jtincrementor2-increment on 2018/05/09 03:00:08
SWDEV-2 - Change OpenCL version number from 2649 to 2650.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2397 edit
2018-05-09 03:22:33 -04:00
foreman d4bb6a0a11 P4 to Git Change 1552209 by cpaquot@cpaquot-ocl-lc-lnx on 2018/05/08 20:24:32
SWDEV-145570 - [HIP] Use the as_amd()->asHostQueue with streamSet

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#6 edit
2018-05-08 20:30:17 -04:00
foreman 813c770d73 P4 to Git Change 1552198 by skudchad@skudchad_rocm on 2018/05/08 18:57:32
SWDEV-145570 - [HIP] - Synchronize the legacy default stream with other blocking streams as per the spec.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#10 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#5 edit
2018-05-08 19:04:35 -04:00
Yaxun (Sam) Liu 4c2d2b9e69 Fix warning about inlined function is not defined 2018-05-08 16:38:50 -04:00
foreman b320c89b8a P4 to Git Change 1552060 by gandryey@gera-w8 on 2018/05/08 15:47:54
SWDEV-151981 - Removal of CPU support on Windows
	- Part 6. Remove obsolete environment variables

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#289 edit
2018-05-08 16:36:25 -04:00
foreman dc9e8417cb P4 to Git Change 1552021 by gandryey@gera-w8 on 2018/05/08 15:00:13
SWDEV-151981 - Removal of CPU support on Windows
	- Part 5. Remove runtime logic that considered CPU device support.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#33 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#83 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#130 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#92 edit
2018-05-08 15:47:58 -04:00
foreman 3f79785a96 P4 to Git Change 1552021 by gandryey@gera-w8 on 2018/05/08 15:00:13
SWDEV-151981 - Removal of CPU support on Windows
	- Part 5. Remove runtime logic that considered CPU device support.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#33 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#83 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#130 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#92 edit
2018-05-08 15:47:58 -04:00
foreman 434912d2ca P4 to Git Change 1552011 by skudchad@skudchad_test2_win_opencl on 2018/05/08 14:48:45
SWDEV-145570 - [HIP] Fix offset calculation when getting a memory object. Also include case when destination VA may just be a CPU host VA and not nessarily device alloced.
	- Fix hipMemset* to write each byte and now a dword as per the spec

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#24 edit
2018-05-08 15:43:13 -04:00
Yaxun (Sam) Liu eeedfc5567 Add __assert_fail, __device_trap and hipErrorAssert for clang 2018-05-08 15:42:27 -04:00
foreman 32bca51906 P4 to Git Change 1551967 by gandryey@gera-w8 on 2018/05/08 14:11:14
SWDEV-151981 - Removal of CPU support on Windows
	- Part 4. Remove CPU specific logic for CL-GL interop

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10_amd.hpp#10 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11_amd.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9_amd.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#58 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl_amd.hpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/interop.hpp#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#103 edit
2018-05-08 15:07:44 -04:00
foreman 1d774ec2b2 P4 to Git Change 1551967 by gandryey@gera-w8 on 2018/05/08 14:11:14
SWDEV-151981 - Removal of CPU support on Windows
	- Part 4. Remove CPU specific logic for CL-GL interop

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10_amd.hpp#10 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11_amd.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9_amd.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#58 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl_amd.hpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/interop.hpp#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#103 edit
2018-05-08 15:07:44 -04:00
Evgeny Mankov e8dd9297ae Merge pull request #438 from emankov/hipBLAS
[HIPIFY][Blas] Sync with CUDA 9.1
2018-05-08 20:50:39 +03:00
Siu Chi Chan 4f12ddea8f add intrinsics mbcnt_lo, mbcnt_hi, lane_id 2018-05-08 13:43:53 -04:00
Evgeny Mankov 57d9ced72a [HIPIFY][Blas] Sync with CUDA 9.1 2018-05-08 20:42:30 +03:00
foreman 862d478fc6 P4 to Git Change 1551931 by gandryey@gera-w8 on 2018/05/08 12:56:00
SWDEV-151981 - Removal of CPU support on Windows
	- Remove missed prototype

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#27 edit
2018-05-08 13:05:02 -04:00
foreman 6c8f332337 P4 to Git Change 1551928 by gandryey@gera-w8 on 2018/05/08 12:42:43
SWDEV-151981 - Removal of CPU support on Windows
	- Part 3. Remove device fission extension

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_common.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#59 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_device.cpp#71 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#218 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#299 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#165 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#26 edit
2018-05-08 12:50:31 -04:00
foreman ac50335c91 P4 to Git Change 1551928 by gandryey@gera-w8 on 2018/05/08 12:42:43
SWDEV-151981 - Removal of CPU support on Windows
	- Part 3. Remove device fission extension

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_common.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#59 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_device.cpp#71 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#218 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#299 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#165 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#26 edit
2018-05-08 12:50:31 -04:00
Evgeny Mankov 76372e9bfa Merge pull request #435 from emankov/hipBLAS
[HIPIFY] Sync with hipBLAS
2018-05-08 19:22:32 +03:00
Evgeny Mankov 089ac77b97 [HIPIFY] Sync with hipBLAS 2018-05-08 19:20:47 +03:00
Jenkins b5fa30cfc6 Merge 'master' into 'amd-master'
Change-Id: I387d49269f0314b38db5e77eacc1be636280620d
2018-05-08 04:09:43 -05:00
foreman 052f8cd233 P4 to Git Change 1551541 by johtaylo@johtaylo-jtincrementor2-increment on 2018/05/08 03:00:14
SWDEV-2 - Change OpenCL version number from 2648 to 2649.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2396 edit
2018-05-08 03:52:49 -04:00
Maneesh Gupta 52bc057dc1 Merge pull request #432 from moosichu/patch-1
Add space between `###` and `Notes` in hip_terms
2018-05-08 12:30:27 +05:30
foreman 20257bd78b P4 to Git Change 1551379 by skeely@skeely_HSA_linux on 2018/05/07 19:08:50
SWDEV-147388 - Ignore metadata for TEXTURE_BUFFER objects.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#34 edit
2018-05-07 19:19:26 -04:00
foreman 7fe8b95168 P4 to Git Change 1551367 by lmoriche@lmoriche_opencl_dev2 on 2018/05/07 18:40:02
SWDEV-145570 - [HIP] - Fix a race condition in the CommandQueue::Thread destruction.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/os/os_posix.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#26 edit
2018-05-07 18:50:50 -04:00
foreman c06ffcf665 P4 to Git Change 1551276 by jatang@jatang-opencl-hsa-stg4 on 2018/05/07 16:28:58
SWDEV-1 - Switch to VS2017 Compiler (opencl).

	+#ifdef _WIN32
	#include <intrin.h>
	+#endif

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/util.hpp#14 edit
2018-05-07 17:11:56 -04:00
foreman 0698c17303 P4 to Git Change 1551133 by ncooper@ncooper-c7 on 2018/05/07 13:57:08
SWDEV-1 - Switch to VS2017 Compiler (opencl)

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/SPIRV/SPIRVWriter.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/SPIRV/build/Makefile.SPIRV#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/sc/Src/NSrc/SCRegPBQP.hpp#10 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/caching/cache.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/opencldefs#227 edit
... //depot/stg/opencl/drivers/opencl/runtime/runtimedefs#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/util.hpp#13 edit
2018-05-07 15:36:56 -04:00
Rahul Garg 78568435da Added hipMemset3D 2018-05-07 10:24:30 +05:30
Tom Maenan Read Cutting 06538c2b6d Add space between ### and Notes in hip_terms
Makes `Notes` an H3 heading.
2018-05-05 13:30:11 +01:00
foreman f150fd22cb P4 to Git Change 1550670 by johtaylo@johtaylo-jtincrementor2-increment on 2018/05/05 03:00:39
SWDEV-2 - Change OpenCL version number from 2647 to 2648.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2395 edit
2018-05-05 03:15:40 -04:00
foreman 6b7ec8f427 P4 to Git Change 1550648 by skudchad@skudchad_test2_win_opencl on 2018/05/04 20:56:00
SWDEV-145570 - [HIP]
	- Implement hipMemcpyHtoD/DtoH/DtoD/ and their Async APIs
	- Combine logic for hipMemset/Memcpy/Memset2D/Memcpy2D that can be shared across multiple APIs

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#23 edit
2018-05-05 00:34:05 -04:00