Graphe des révisions

13402 Révisions

Auteur SHA1 Message Date
Evgeny Mankov e3cf10192c [HIPIFY][tests] Set max clang's CudaArch for corresponding CUDA major.minor version
[Reason] To support maximum CUDA features in offline tests

+ Add defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 600 restriction for atomicAdd on doubles in atomics.cu.
  So if LLVM < 7 and --cuda-gpu-arch doesn't work, __CUDA_ARCH__ is unset too (350 by default in clang);
  if LLVM >= 7 --cuda-gpu-arch is used and __CUDA_ARCH__ is set based on it.


[ROCm/clr commit: 3233a845f6]
2019-10-21 17:50:00 +03:00
Evgeny Mankov c021444d97 Merge pull request #1567 from emankov/hipify-clang
[HIPIFY][perl] Support of 'using namespace cub'

[ROCm/clr commit: ef25774dae]
2019-10-21 17:16:32 +03:00
Evgeny Mankov de849a44e7 [HIPIFY][perl] Support of 'using namespace cub'
[ROCm/clr commit: 9633cdbd8a]
2019-10-21 17:15:05 +03:00
Evgeny Mankov 514f64146e Merge pull request #1566 from emankov/hipify-clang
[HIPIFY][tests] Set max clang's CudaArch for corresponding CUDA version

[ROCm/clr commit: 3cf3572237]
2019-10-21 15:54:34 +03:00
Evgeny Mankov 665a200247 [HIPIFY][tests] Set max clang's CudaArch for corresponding CUDA version
[Reason] To support maximum CUDA features in offline tests

+ Add CUDA_VERSION >= 800 restriction for atomics.cu

[TODO] Find a way to use or exclude atomicAdd for doubles if LLVM < 7, because
LLVM 6.0.1 and older do not use --cuda-gpu-arch in clang's Driver code at all (option is only declared)


[ROCm/clr commit: 9fc7afa738]
2019-10-21 15:51:25 +03:00
Evgeny Mankov 50da6fc3ac Merge pull request #1565 from emankov/hipify-clang
[HIPIFY][tests] Set -I for CUDA path instead of --cuda-path for LLVM < 4

[ROCm/clr commit: a47281e8ad]
2019-10-20 20:10:25 +03:00
Evgeny Mankov 3a45daed0a [HIPIFY][tests] Set -I for CUDA path instead of --cuda-path for LLVM < 4
[ROCm/clr commit: ff6057d1ff]
2019-10-20 20:08:56 +03:00
Evgeny Mankov c1ef259696 Merge pull request #1564 from emankov/hipify-clang
[HIPIFY][tests] Exclude all CUB tests if CUDA_CUB_ROOT_DIR is not set

[ROCm/clr commit: 8a4c860ae4]
2019-10-20 20:04:18 +03:00
Evgeny Mankov e07be75489 [HIPIFY][tests] Exclude all CUB tests if CUDA_CUB_ROOT_DIR is not set
[ROCm/clr commit: 5bf1ff19ff]
2019-10-20 20:03:18 +03:00
foreman 57d46c2894 P4 to Git Change 2016349 by chui@ocl-promo-incrementor on 2019/10/19 03:00:49
SWDEV-2 - Change OpenCL version number from 3022 to 3023.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2770 edit


[ROCm/clr commit: 59d9f16f77]
2019-10-19 03:07:39 -04:00
foreman daf74744af P4 to Git Change 2016282 by gandryey@gera-win10 on 2019/10/18 17:41:12
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove cl_amd_command_intercept extension

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl1.2/CL/cl_ext.h#21 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#38 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.1/CL/cl_ext.h#15 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.2/CL/cl_ext.h#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#53 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.hpp#30 edit


[ROCm/clr commit: 637dda04ac]
2019-10-18 17:47:30 -04:00
foreman 1ffcdefc22 P4 to Git Change 2016282 by gandryey@gera-win10 on 2019/10/18 17:41:12
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove cl_amd_command_intercept extension

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl1.2/CL/cl_ext.h#21 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#38 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.1/CL/cl_ext.h#15 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.2/CL/cl_ext.h#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#53 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.hpp#30 edit


[ROCm/clr commit: 902353adc6]
2019-10-18 17:47:30 -04:00
Vladislav Sytchenko 33acfa17c1 Remove extra #endif.
[ROCm/clr commit: 432380aa5d]
2019-10-18 16:40:29 -04:00
foreman 0b7473fe02 P4 to Git Change 2016115 by cpaquot@cpaquot-ocl-lc-lnx on 2019/10/18 13:58:30
SWDEV-207366 - [HIP] 'hipErrorInvalidValue' (1011) with hipMemcpy3D
	We need to divide by sizeByte and not multiply the WidthInBytes to get pixel width

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#79 edit


[ROCm/clr commit: 5b6f922d59]
2019-10-18 14:10:57 -04:00
foreman b540d82392 P4 to Git Change 2016080 by gandryey@gera-win10 on 2019/10/18 13:08:03
SWDEV-204511 - [NV14 XTM] OpenCL Conformance Test Fails
	- Handle different ABI versions for LC and HSAIL if single context with multiple devices was used. LC changed the locaiton of hidden arguments and HSAIL path requires patching

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#83 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.hpp#26 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#105 edit


[ROCm/clr commit: 50ad4d1a7f]
2019-10-18 13:20:55 -04:00
Evgeny Mankov 7bd5ee880b Merge pull request #1562 from emankov/doc
[HIPIFY][CUB][#1460] Add "using namespace cub" translation support

[ROCm/clr commit: 01819a4a24]
2019-10-18 18:56:34 +03:00
Evgeny Mankov bb20336fa6 [HIPIFY][tests] Test clean-up
[ROCm/clr commit: 44a897a146]
2019-10-18 18:55:52 +03:00
Evgeny Mankov 85281b1d86 [HIPIFY][CUB][#1460] Add "using namespace cub" translation support
+ Add cub_03.cu


[ROCm/clr commit: 86f6756b02]
2019-10-18 18:51:40 +03:00
foreman c39962ebf4 P4 to Git Change 2015771 by chui@ocl-promo-incrementor on 2019/10/18 03:00:49
SWDEV-2 - Change OpenCL version number from 3021 to 3022.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2769 edit


[ROCm/clr commit: f351cfb96b]
2019-10-18 03:06:12 -04:00
Evgeny Mankov a392a050d6 Merge pull request #1558 from aaronenyeshi/fix-hipify-cmake-version
[HIPIFY][cmake] Make CMakeLists use default 3.5.1 for Ubuntu 16.04

[ROCm/clr commit: eb6690bbba]
2019-10-18 06:39:35 +03:00
Rahul Garg 30759e7c9b Merge pull request #1550 from yxsamliu/new-launch
Add -fhip-new-launch-api to hipcc for HIP/VDI

[ROCm/clr commit: 07eed1e5bf]
2019-10-17 19:07:32 -07:00
Vladislav Sytchenko 54eddfc8f0 _aligned_malloc() on Windows first takes size, then alignment, which is the opposite of how the similar function behaves on Linux. Memory allocated by it also has to be freed using _aligned_free(), unlike Linux where we can use regular free().
Edit aligned_alloc() macro and add a aligned_free() one to align with the above behaviour.


[ROCm/clr commit: f4440817cb]
2019-10-17 18:58:32 -04:00
Aaron Enye Shi 489e3dda9a [HIPIFY][cmake] Make CMakeLists use default 3.5.1 for Ubuntu 16.04
[ROCm/clr commit: b3ea58abe7]
2019-10-17 21:21:24 +00:00
Evgeny Mankov 91aeabeb39 Merge pull request #1557 from emankov/hipify-clang
[HIPIFY][doc] Update README.md

[ROCm/clr commit: ab9072cecd]
2019-10-17 22:28:16 +03:00
Evgeny Mankov 9fb60fa36a [HIPIFY][doc] Update README.md
+ Versions, testing


[ROCm/clr commit: 1165e6bd71]
2019-10-17 22:26:48 +03:00
foreman 5dcf8d2029 P4 to Git Change 2015373 by gandryey@gera-win10 on 2019/10/17 15:06:49
SWDEV-207417 - [CQE OCL][NAVI 10 WKS][D18801][QR][DTB-BLOCKER]clinfo failing with clBuildProgram(-11) | Faulty CL#2011927
	- CQE uses navi10 A0 board. Add xnack support for A0 boards.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#65 edit


[ROCm/clr commit: bb8d31fdbb]
2019-10-17 15:18:43 -04:00
foreman d3b41052fa P4 to Git Change 2015320 by vsytchen@vsytchen-hip-win10 on 2019/10/17 14:00:39
SWDEV-207100 - [HIP CQE][HIPonPAL][WIN][QR] 5 hiptests failed in 19H1 Windows on all ASICs

	1. Reshuffle locations of the hipMemset functions to make them all next to each other.
	2. Update the declarations of hipMemsetD8, hipMemsetD8Async, hipMemsetD16, hipMemsetD16Async. These functions are type aware and take in as their third argument the number of elements in the buffer, not the buffer size. Change the name of this argument from sizeBytes to count to align with the above description. Changes for the header are tracked here https://github.com/ROCm-Developer-Tools/HIP/pull/1544
	3. Add the actual implementation of hipMemsetD8, hipMemsetD8Async, hipMemsetD16, hipMemsetD16Async.
	4. Remove ihipMemset2D() as it is essentially a copy of ihipMemset(). Change hipMemset2D()/hipMemset2DAsync() to use ihipMemset().
	5. Implement hipMemset3DAsync().
	6. Update the test script to pick up the updated command line options for hipMemset and hipMemset3D.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#32 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#30 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#78 edit
... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/scripts/hip_runtimeapi_tests.txt#13 edit


[ROCm/clr commit: 93ad67f8a6]
2019-10-17 14:09:46 -04:00
Rahul Garg 714314fa66 Revert "hipcc defaults to code object v3 (#1298)"
This reverts commit e5a2ba9602.


[ROCm/clr commit: 446718f990]
2019-10-17 13:27:28 -04:00
Evgeny Mankov 416adb365c Merge pull request #1554 from emankov/clang
[HIPIFY][cmake] Add install rule for clang-resource-headers

[ROCm/clr commit: 27adf6911d]
2019-10-17 16:50:25 +03:00
Evgeny Mankov c8238e1fd4 [HIPIFY][cmake] Add install rule for clang-resource-headers
+ Fix: set destination for all installing files to ${CMAKE_INSTALL_PREFIX}


[ROCm/clr commit: 8c3dff7ab9]
2019-10-17 15:05:55 +03:00
foreman 75f6fa9b36 P4 to Git Change 2014958 by chui@ocl-promo-incrementor on 2019/10/17 03:00:49
SWDEV-2 - Change OpenCL version number from 3020 to 3021.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2768 edit


[ROCm/clr commit: 09382fcc6a]
2019-10-17 03:08:27 -04:00
Rahul Garg 685a4cd182 Merge pull request #1544 from vsytch/master
QoL changes to the hipMemset family

[ROCm/clr commit: a21fe1443b]
2019-10-16 18:54:20 -07:00
foreman c355d1f353 P4 to Git Change 2014744 by vsytchen@vsytchen-ocl-win10-2 on 2019/10/16 17:37:46
SWDEV-207449 - [HIP CQE][HIPonPAL][LNX][QR] 6 hiptests failed on all ASICs

	hipTestHalf fails to build on Windows due to linker error "unresolved external symbol __gnu_h2f_ieee"

	1. Expose __gnu_h2f_ieee() and __gnu_f2h_ieee() for Windows builds.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#31 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#45 edit


[ROCm/clr commit: 6f43afddfb]
2019-10-16 17:47:55 -04:00
Evgeny Mankov 127e98dd46 Merge pull request #1551 from emankov/clang
[HIPIFY][CUB][#1460] Add cub:: namespace support in TemplateInstantiation of cudaLaunchKernel

[ROCm/clr commit: ada37f1b78]
2019-10-16 19:05:18 +03:00
foreman 3c1fdbce04 P4 to Git Change 2014458 by jujiang@JJ-HIP on 2019/10/16 11:52:39
SWDEV-205925 - Update HIP texture APIs for issue in hipTexRefSetAddress in HIP/PAL on Windows

	- Remove the nullptr possibility
	http://ocltc.amd.com/reviews/r/18121/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#23 edit


[ROCm/clr commit: daf8977c12]
2019-10-16 12:03:49 -04:00
Evgeny Mankov b357301610 [HIPIFY][CUB][#1460] Add cub:: namespace support in TemplateInstantiation of cudaLaunchKernel
+ Update cub_02.cu test accordingly


[ROCm/clr commit: e557563947]
2019-10-16 19:02:13 +03:00
foreman fb7da41d27 P4 to Git Change 2014404 by gandryey@gera-win10 on 2019/10/16 11:13:37
SWDEV-184710 - Support hipLaunchCooperativeKernelMultiDevice()
	- Add support for multi grid launch in hip
	- Detect the new hidden argument and pass the required information for the kernel launch
	- Memory for synchronization is allocated as a single object and then the offset for each GPU is found

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#343 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#136 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#99 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#97 edit


[ROCm/clr commit: 6e7e97987f]
2019-10-16 11:24:09 -04:00
foreman 4c4ce6a8b4 P4 to Git Change 2014404 by gandryey@gera-win10 on 2019/10/16 11:13:37
SWDEV-184710 - Support hipLaunchCooperativeKernelMultiDevice()
	- Add support for multi grid launch in hip
	- Detect the new hidden argument and pass the required information for the kernel launch
	- Memory for synchronization is allocated as a single object and then the offset for each GPU is found

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#343 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#136 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#99 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#97 edit


[ROCm/clr commit: 07626f132b]
2019-10-16 11:24:09 -04:00
Vladislav Sytchenko 577bac5de8 hipMemset2D and hipMemset3D tests should be passing by default.
[ROCm/clr commit: 86d0c5fa5a]
2019-10-16 11:02:38 -04:00
Evgeny Mankov 42670993c9 Merge pull request #1548 from emankov/clang
[HIPIFY] Refactor a couple of matcher functions

[ROCm/clr commit: 2d9b5b25e9]
2019-10-16 13:45:59 +03:00
Evgeny Mankov 97f10790eb [HIPIFY] Refactor a couple of matcher functions
+ Separate out GetSubstrLocation function for finding substr SourceLocation in a given SourceRange


[ROCm/clr commit: 0a20048759]
2019-10-16 13:43:56 +03:00
Evgeny Mankov 223c76e5e8 Merge pull request #1547 from emankov/clang
[HIPIFY][CUB][#1460] Implement cubFunctionTemplateDecl matcher

[ROCm/clr commit: b4fd41169e]
2019-10-16 13:09:49 +03:00
Evgeny Mankov 643a8bcf5b [HIPIFY][CUB][#1460] Implement cubFunctionTemplateDecl matcher
+ Add cub_02.cu test
+ Partial fixes #1460


[ROCm/clr commit: 5555d46e66]
2019-10-16 13:08:11 +03:00
Jenkins 4ae193be84 Merge 'master' into 'amd-master'
Change-Id: I49daa87c2f32c5b6a4591409dc18d50c9ffdfce8


[ROCm/clr commit: 61898f9608]
2019-10-16 05:10:43 -04:00
foreman f49169e681 P4 to Git Change 2014158 by chui@ocl-promo-incrementor on 2019/10/16 03:00:48
SWDEV-2 - Change OpenCL version number from 3019 to 3020.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2767 edit


[ROCm/clr commit: 4bb7f81c62]
2019-10-16 03:03:02 -04:00
kjayapra-amd 97c823d552 Use the correct return type in runTest in 11_texture_driver sample. (#1546)
Fixes SWDEV-203394.
Currently in runTest() returns true, even if the texture reference copy does not happen. Using the existing testResult Flag to return from runTest().

[ROCm/clr commit: 9d571e3c9e]
2019-10-16 10:52:15 +05:30
vsytch 4b8d8034cf Update hipMathFunctions, hipTestHalf and hipTestNativeHalf tests to support Navi10 and Navi14. (#1545)
[ROCm/clr commit: c2aadd4d12]
2019-10-16 10:51:48 +05:30
kpyzhov 19f22b468b [hipcc] Temporary add -D_OPENMP to clang options to workaround cmake issue (#1540)
* Temporary add -D_OPENMP to clang options in hipcc to allow using CMake OpenMP detection with hip-clang (until updated CMake version is available).

[ROCm/clr commit: 9773f94c71]
2019-10-16 10:51:28 +05:30
Nick Curtis a7d6c03e17 Guard against division by zero for no VGPR usage (e.g., in an empty kernel) (#1528)
* guard against division by zero for no VGPR usage (e.g., in an empty kernel)

* fix bracket format

* clean up parenthesis


[ROCm/clr commit: d16963c9d5]
2019-10-16 10:49:56 +05:30
Jatin Chaudhary 1ec284d333 Adding code object manager to rtc (#1526)
Adding Code Object Manager file to rtc to resolve address of Bundled_code_object in libhiprtc.so

[ROCm/clr commit: b3351561c5]
2019-10-16 10:49:16 +05:30