067928a205d8ee6ff2d22698a4746a03cfd56102
SWDEV-80173 - Switching HSAIL on OpenCL stack by default.
1. HSAIL becomes default backend for OpenCL (all versions) on all GFX7+ (CI+) devices.
2. AMDIL stays default on pre CI+ devices.
3. AMDIL is forced implicitly:
a) for pre CI+ devices;
b) if clc++ extension is used: "-x -clc++";
c) if input IL is SPIR: "-x -spir";
4. To force AMDIL explicitly "-legacy" option should be added to AMD_OCL_BUILD_OPTIONS or AMD_OCL_BUILD_OPTIONS_APPEND environment variable.
5. SPIRV always goes through HSAIL and couldn't be forced to AMDIL explicitly or implicitly.
6. Compilation of Blit kernels couldn't be forced to AMDIL too, they are compiled via HSAIL on GFX7+, otherwise - via AMDIL. The logic is almost the same as it is currently.
7. test_driver.pl is switched to OpenCL 1.2/HSAIL by default. Previously OpenCL 2.0/HSAIL was by default and all OpenCL 1.2 tests went through AMDIL.
[Testing]
offline: weekly, smoke
online: bootleg, ocltst, ocl conformance 1.2/2.0, AMD SDK 3.0, Blender 2.76b, performance testing, manual testing on CI+ devices with forcing AMDIL "-legacy".
pre-checkin:
http://ocltc.amd.com:8111/viewModification.html?modId=64664&personal=true&buildTypeId=&tab=vcsModificationBuilds&show_all_builds=true
[Reviewers]
Brian Sumner, Stanislav Mekhanoshin, German Andryeyev, Nikolay Haustov
http://ocltc.amd.com/reviews/r/8850
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#248 edit
... //depot/stg/opencl/drivers/opencl/tests/hsa/bin/test_driver.pl#24 edit
[ROCm/clr commit: b01869b54b]
Description
Aucune description fournie
Langue
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Autre
1.1%