커밋 그래프

13474 커밋

작성자 SHA1 메시지 날짜
Rahul Garg b94f5bd667 Merge pull request #1607 from mhbliao/hliao/master/missing.api.hip.clang
[HIP] Correct headers and add missing function templates for hip-clang.
2019-10-30 07:48:57 -07:00
foreman 6b680186bc P4 to Git Change 2021639 by chui@ocl-promo-incrementor on 2019/10/30 03:00:53
SWDEV-2 - Change OpenCL version number from 3028 to 3029.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2776 edit
2019-10-30 03:07:02 -04:00
foreman 988882bb4f P4 to Git Change 2021608 by michliao@hliao-dev-00-hip.rocm-workspace on 2019/10/30 01:13:58
SWDEV-145570 - [HIP] Fix occupancy API prototype.

	- They need to be C API, i.e. extern "C".
	- Follow the current API and use `uint32_t` instead of `int`.
	  + TODO: We need to revert them back once that APIs are changed to be
	    compatible with CUDA.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#46 edit
2019-10-30 01:19:24 -04:00
Michael LIAO 61bc68a5f4 [HIP] Correct headers and add missing function templates for hip-clang.
- Fix 2 runtime API prototypes
  `hipOccupancyMaxActiveBlocksPerMultiprocessor` and
  `hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`
- Add missing function templates of them in hip-clang.
2019-10-29 22:00:11 -04:00
Rahul Garg 9840cdac99 Merge pull request #1602 from ROCm-Developer-Tools/revert-1560-satyanveshd/hipoccupy
Revert "Cooperative groups match with cuda SWDEV-205006"
2019-10-29 16:54:36 -07:00
Evgeny Mankov daab61e8e8 Merge pull request #1604 from emankov/hipify
[HIPIFY][#1603] Fix
2019-10-29 22:12:39 +03:00
Evgeny Mankov 050fdad7b7 [HIPIFY][#1603] Fix 2019-10-29 22:10:36 +03:00
Rahul Garg 27221bc823 Revert "Fix occupany APIs (#1560)"
This reverts commit 6c5fbf9b4a.
2019-10-29 11:41:08 -07:00
Evgeny Mankov 8a7e6fb747 Merge pull request #1601 from emankov/hipify
[HIPIFY][Linux] Rollback --cuda-compile-host-device on Linux
2019-10-29 20:55:29 +03:00
Evgeny Mankov dd2243f2fa [HIPIFY][Linux] Rollback --cuda-compile-host-device on Linux
[Reason] It doesn't work with LLVM 9 and higher; Windows is fine
2019-10-29 20:53:54 +03:00
Evgeny Mankov 99c4a40da1 Merge pull request #1600 from emankov/hipify
[HIPIFY] Introduce --cuda-compile-host-device for LLVM >= 9
2019-10-29 19:47:15 +03:00
Evgeny Mankov 411b18a124 [HIPIFY] Introduce --cuda-compile-host-device for LLVM >= 9
* LLVM < 9 continues using --cuda-host-only
2019-10-29 19:42:53 +03:00
foreman 783f1a506c P4 to Git Change 2021171 by gandryey@gera-win10 on 2019/10/29 12:06:07
SWDEV-208424 - ROCr language runtime should not free code object until executable destroy
	- Reshuffle the code to make sure HSA runtime can keep the pointer to the code object

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#67 edit
2019-10-29 12:23:34 -04:00
Evgeny Mankov 50df94be1e Merge pull request #1599 from emankov/hipify
[HIPIFY] cudaMemcpy2DFromArray(Async) support
2019-10-29 19:14:00 +03:00
Evgeny Mankov 5dd00bdf52 [HIPIFY] cudaMemcpy2DFromArray(Async) support 2019-10-29 19:12:42 +03:00
Laurent Morichetti 66c91b42e6 Fix a code object memory corruption
The lifetime of the buffer given to
hsa_code_object_reader_create_from_memory must exceed that of the
code object reader. We need to create a copy of the code object
binary memory (file) that is kept allocated until the code object
reader is destroyed.
2019-10-29 08:23:57 -07:00
foreman c081898145 P4 to Git Change 2020900 by chui@ocl-promo-incrementor on 2019/10/29 03:00:53
SWDEV-2 - Change OpenCL version number from 3027 to 3028.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2775 edit
2019-10-29 03:02:40 -04:00
foreman 720ea66859 P4 to Git Change 2020678 by gandryey@gera-win10 on 2019/10/28 18:06:48
SWDEV-79445 - OCL generic changes and code clean-up
	- Fix memory leaks in COMGR path. Make sure  metadata_ object is properly destroyed in COMGR.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#66 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#84 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#53 edit
2019-10-28 18:13:35 -04:00
Evgeny Mankov 3921ea9057 Merge pull request #1594 from emankov/HIP
[HIP][doc] Fix typo: AMD-clang -> HIP-clang
2019-10-28 23:22:57 +03:00
Evgeny Mankov 4c5c6b4910 [HIP][cmake] Simplify UNIX related code (the beginning)
[REASONS]
1. Make OS-dependent code more clear and readable
2. To ease Windows support
2019-10-28 23:22:27 +03:00
Evgeny Mankov 3df22b2fde [HIP][doc] NVIDIA-nvcc -> HIP-nvcc 2019-10-28 22:46:33 +03:00
Evgeny Mankov d312bce79d [HIP][doc] AMD-hcc -> HIP-hcc 2019-10-28 21:41:12 +03:00
Evgeny Mankov 6284b041e5 [HIP][doc] Fix typo: AMD-clang -> HIP-clang
HIP-clang is already used below instead of AMD-clang
2019-10-28 21:19:21 +03:00
Evgeny Mankov 8100e084b8 [HIP][cmake] Move all *_INSTALL_DIR variables up before first add_subdirectory()
[REASON]
Those vars (may) used by cmake in subdirectories (#1571)
2019-10-28 21:07:00 +03:00
foreman a8e96b1d3d P4 to Git Change 2019944 by chui@ocl-promo-incrementor on 2019/10/26 03:00:52
SWDEV-2 - Change OpenCL version number from 3026 to 3027.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2774 edit
2019-10-26 03:10:02 -04:00
foreman e22fe683e7 P4 to Git Change 2019867 by gandryey@gera-win10 on 2019/10/25 18:12:01
SWDEV-79445 - OCL generic changes and code clean-up
	- Fix memory leaks in COMGR path. Don't create binaryData, since it will be overwritten with action_data_get_data() call.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#65 edit
2019-10-25 18:17:54 -04:00
foreman be8023429a P4 to Git Change 2019864 by axie@axie_opencl_pal on 2019/10/25 18:03:56
SWDEV-204995 - Linux Pro: Houdini18 Application hang is seen with pyro sample on OpenCL selection.
	The new Houdini application has around 286.6K byte TLS. In Linux, the TLS resides in thread stack. TLS is allocated and initialized during pthread_create.
	If command queue thread stack size is only 256k byte, pthread_create function failed with return value EINVAL.

	The above information is verified by this test:
	I printed out the address of a __thread variable. Then I printed out an address of a local variable. I confirmed both variables are in the same memory segment according to /proc/id/maps. This memory segment is same size of CQ_THREAD_STACK_SIZE and changed with this environment variable.

	The __thread variable is 286.6K byte away from the bottom of the stack but still inside the stack.

	I have added printf to verify function guessTlsSize can guess tlsSize correctly. And pthread_create succeeded in first invocation with tls size adjustment.

	Tests:
	1. Test houdini - PASS
	2. http://ocltc.amd.com:8111/viewModification.html?modId=128021&personal=true&tab=vcsModificationBuilds

	ReviewBoard: http://ocltc.amd.com/reviews/r/18175

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/os/os_posix.cpp#47 edit
2019-10-25 17:08:39 -05:00
foreman 0ce1ad6acb P4 to Git Change 2019704 by cpaquot@cpaquot-ocl-lc-lnx on 2019/10/25 14:07:38
SWDEV-208972 - [HIP] Enable LOG_LEVEL in release bits.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/debug.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#322 edit
2019-10-25 14:17:24 -04:00
Evgeny Mankov 7f367ff933 Merge pull request #1590 from emankov/doc
[HIPIFY][tests] Fix ambiguous call to cusparseGetErrorString declared in cusparse.h
2019-10-25 16:08:22 +03:00
Evgeny Mankov f68bee02f5 [HIPIFY][tests] Rename the ambiguous call as well 2019-10-25 16:07:31 +03:00
Evgeny Mankov 9529e1d91d [HIPIFY][tests] Fix ambiguous call to cusparseGetErrorString declared in cusparse.h 2019-10-25 16:04:20 +03:00
Anusha Godavarthy Surya 9332a39838 Merge branch 'master' into tex_unbind_issue_fix 2019-10-25 15:54:25 +05:30
amd-lthakur 626cd5d07a Excluded the test case for nvcc platform 2019-10-25 15:52:11 +05:30
Anusha Godavarthy Surya ae838f8cee merge from master 2019-10-25 15:52:09 +05:30
Alex Voicu 40522e2b6a Add missing operators, fix GCC compilation. (#1589) 2019-10-25 15:44:24 +05:30
Alex Voicu f909a393ff Fix deadlock, remove old __sync_* use. (#1584)
This fixes a deadlock introduced by the switch to TTAS loops, and is therefore mildly urgent (to prevent the CI from hoovering in the broken code).
2019-10-25 15:44:17 +05:30
Rahul Garg 66a3c874c8 [dtest] Fix hipMemset2D test (#1579)
Reverts changes made in #1399. This is a RT api test. For testing hipMemAllocPitch , a new test should be written and that should use correct memset API.
2019-10-25 15:44:05 +05:30
Rahul Garg 14b870d1ce Add hipMemcpy2DfromArray (#1510)
Adds hipMemcpy2DFromArray and hipMemcpy2DFromArrayAsync equivalent to cudaMemcpy2DFromArray and cudaMemcpy2DFromArrayAsync.
2019-10-25 15:43:33 +05:30
Anusha Godavarthy Surya c0fc5e718c Merge branch 'master' into tex_unbind_issue_fix 2019-10-25 15:36:55 +05:30
foreman 81c59e130f P4 to Git Change 2019270 by chui@ocl-promo-incrementor on 2019/10/25 03:00:52
SWDEV-2 - Change OpenCL version number from 3025 to 3026.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2773 edit
2019-10-25 02:10:07 -05:00
Anusha Godavarthy Surya b9c8dd8ac6 Fixed CI build failure 2019-10-25 12:21:41 +05:30
amd-lthakur b2238bacd4 Refactored the file as suggested 2019-10-25 10:44:38 +05:30
amd-lthakur 84fb936dfe Update matmul.cpp 2019-10-25 09:22:07 +05:30
amd-lthakur 9a860e6766 Update hipExtModuleLaunchKernel.cpp 2019-10-25 09:19:49 +05:30
foreman a1c86d10b5 P4 to Git Change 2019036 by gandryey@gera-win10 on 2019/10/24 17:06:27
SWDEV-208424 - ROCr language runtime should not free code object until executable destroy
	- Keep the code object reader alive until the program destruction. Update HSAIL path only, since LC path already handles it correctly.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#107 edit
2019-10-24 17:15:52 -04:00
foreman ee2f6fcf88 P4 to Git Change 2019005 by gandryey@gera-win10 on 2019/10/24 16:25:40
SWDEV-79445 - OCL generic changes and code clean-up
	- Fix memory leaks in COMGR path.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#64 edit
2019-10-24 16:29:54 -04:00
foreman 565ba944d0 P4 to Git Change 2018917 by gandryey@gera-win10 on 2019/10/24 14:33:36
SWDEV-197289 - VDI tracing API integration in rocTracer
	- Change the names of the functions according to the new interface

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_activity.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#34 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#32 edit
2019-10-24 14:40:22 -04:00
foreman 7ad6787328 P4 to Git Change 2018860 by gandryey@gera-win10 on 2019/10/24 13:29:26
SWDEV-207662 - [EURI][OPENCL][Forum 244452]: Multiple printf statements inside kernel producing strange output on Vega on Windows
	- Correct the printf arguments parsing logic. Don't use local PrintfInfo info, because it can contain some stale data after the first iteration

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#27 edit
2019-10-24 13:30:53 -04:00
Rahul Garg ff8d3fa446 Update profiling doc (#1576) 2019-10-24 17:51:55 +05:30
Jatin Chaudhary f53b1a1755 Adding New Analyze Target Merging with cppcheck (#1583) 2019-10-24 17:46:06 +05:30