306 Commits

Author SHA1 Message Date
Pengda Xie 1d6b26f829 SWDEV-556684 - HSAIL Cleanup re-apply commit 4abdfe5: (#2024)
Removed some options

-xnack, -force-wgp-mode, -force-wave-size-32, -round-trip-spirv,
-fe-gen-spirv, -lower-pipe-builtins=0|1, -lower-atomics=0|1,
-set-lds=<value>, -set-scalar-registers=<value>,
-set-vector-registers=<value>, -limit-scalar-registers=<value>,
-limit-vector-registers=<value>, -sc-xnack-iommu,
-faa-for-barrier/-fno-a-for-barrier, -sc-dev-format, -verify-lwspir,
-verify-hwspir, -ffma-enable/-fno-fma-enable,
-fmad-enable/-fno-mad-enable, -fdisable-avx/-fno-disable-avx,
-fforce-llvm/-fno-force-llvm, -print-compile-phases,
-kernel-cache-enforce-miss, -kernel-cache-wipe, -kernel-cache,
-sc[=<filename>]/--load-sc-dll[=<filename>],
-be[=<filename>]/--load-be-dll[=<filename>],
-cg[=<filename>]/--load-cg-dll[=<filename>],
-link[=<filename>]/--load-link-dll[=<filename>],
-opt[=<filename>]/--load-opt-dll[=<filename>],
-fe[=<filename>]/--load-fe-dll[=<filename>],
-cl[=<filename>]/--load-cl-dll[=<filename>], -just-kernel=<kernel-name>,
-use-debugil, -fmulti-level-call/-fno-multi-level-call,
-fdebug-call/-fno-debug-call, -fmacro-call/-fno-macro-call,
-fstack-uav/-fno-stack-uav, -fdef-res-id/-fno-def-res-id,
-wokth=int/--waves-opt-kernel-threshold,
-ilkth=int/--inline-kernel-size-threshold,
-ilsth=int/--inline-size-threshold, -ilcth=int/--inline-cost-threshold,
-scopt=int/--sc-opt-level, -flib-no-inline/-fno-lib-no-inline,
-fuser-no-inline/-fno-user-no-inline,
-scras=int/--sc-si-opt-reg-alloc-strategy, -fsc-post-ra-sched,
-fsc-live-sched/-fno-sc-live-sched, -fsc-use-buffer-for-hsa-global,
-fsc-schedule-no-reorder, -fsc-min-reg-schedule,
-fsc-bias-schedule-to-minimize-insts,
-fsc-bias-schedule-to-minimize-regs, -fsc-disable-merge-memory,
-fsc-disable-loop-unroll, -fsc-use-mubuf/-fno-sc-use-mubuf,
-fsc-selective-inline/-fno-sc-selective-inline,
-fsc-keep-calls/-fno-sc-keep-calls, -slc=0|1/--simplifylibcall,
-stack-alignment=<n>, -fdiv2fmul=0|1, -prt-opt-liveness=0|1,
-liveness=0|1, -SRAE-threshold=<value>, -memcombine-max-vec-gen=<value>,
-small-global-objects, -fast-fmaf, -fast-fma, -bfo=0|1, -ebb=0|1, -aa,
-mem2reg=0|1, -licm=0|1, -unroll-allow-partial,
-unroll-threshold=<positive integer>, -unroll-count=<positive integer>,
-apt/--ap-threshold=<positive integer>, -srt/--sr-threshold=<positive
integer>, -fdebug-linker/-fno-debug-linker, -fbin-gpu64/-fno-bin-gpu64,
-fbin-disasm/-fno-bin-disasm, -fbin-bif30, -fbin-hsail/-fno-bin-hsail,
-fbin-amdil/-fno-bin-amdil, -fbin-spir/-fno-bin-spir, -fonly-bin-source,
-fper-pointer-uav/-fno-per-pointer-uav

Co-authored-by: Konstantin Zhuravlyov <kzhuravl_dev@outlook.com>
2025-12-10 09:09:12 -08:00
Pengda Xie 93947241d0 SWDEV-556684 - HSAIL cleanup (#1657) 2025-11-08 02:22:03 -08:00
Pengda Xie a4bbd73dc6 SWDEV-556684 - Remove HSAIL support (#1183) 2025-10-23 11:21:49 -07:00
Danylo Lytovchenko 2ff2316227 Adjust clang format to the new versions, revert broken macro layout (#714) 2025-08-22 17:23:22 +02:00
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
sonadeem ad3d2b0679 SWDEV-503436 - Fix incorrect OptionGroup for FSanitize option
NOPTION is meant for component options or alias runtime options so
the option group must not be OA_RUNTIME or OA_MISC_ALIAS must be set,
otherwise we incorrectly assume that it has an option variable and
attempting to write to it causes corruption of OptionVariables.

Change-Id: Iafb5a8f743e5ed0f87be36061c44578178f6cfde


[ROCm/clr commit: caa10572cb]
2024-12-20 10:14:51 -05:00
ksankisa 3bcd901f06 [SWDEV-469495] Compile blit kernels with -fsanitize=address when asan is enabled.
Change-Id: I96e1abef43317cd58329c4a159f807878bc48cf4


[ROCm/clr commit: e76bf653fb]
2024-08-27 01:27:31 -04:00
Konstantin Zhuravlyov b98c4c2873 Revert "Removed some options"
This reverts commit 4abdfe5489.

Reason for revert: multiple tickets filed. i will re-instate this change after fixing those.

Change-Id: I66152e3643c73ec1d240d0fcddf2119f8f4848a8


[ROCm/clr commit: 5f7ebda6aa]
2024-01-10 13:35:42 -05:00
Konstantin Zhuravlyov 4abdfe5489 Removed some options
-xnack, -force-wgp-mode, -force-wave-size-32, -round-trip-spirv,
-fe-gen-spirv, -lower-pipe-builtins=0|1, -lower-atomics=0|1,
-set-lds=<value>, -set-scalar-registers=<value>,
-set-vector-registers=<value>, -limit-scalar-registers=<value>,
-limit-vector-registers=<value>, -sc-xnack-iommu,
-faa-for-barrier/-fno-a-for-barrier, -sc-dev-format, -verify-lwspir,
-verify-hwspir, -ffma-enable/-fno-fma-enable,
-fmad-enable/-fno-mad-enable, -fdisable-avx/-fno-disable-avx,
-fforce-llvm/-fno-force-llvm, -print-compile-phases,
-kernel-cache-enforce-miss, -kernel-cache-wipe, -kernel-cache,
-sc[=<filename>]/--load-sc-dll[=<filename>],
-be[=<filename>]/--load-be-dll[=<filename>],
-cg[=<filename>]/--load-cg-dll[=<filename>],
-link[=<filename>]/--load-link-dll[=<filename>],
-opt[=<filename>]/--load-opt-dll[=<filename>],
-fe[=<filename>]/--load-fe-dll[=<filename>],
-cl[=<filename>]/--load-cl-dll[=<filename>], -just-kernel=<kernel-name>,
-use-debugil, -fmulti-level-call/-fno-multi-level-call,
-fdebug-call/-fno-debug-call, -fmacro-call/-fno-macro-call,
-fstack-uav/-fno-stack-uav, -fdef-res-id/-fno-def-res-id,
-wokth=int/--waves-opt-kernel-threshold,
-ilkth=int/--inline-kernel-size-threshold,
-ilsth=int/--inline-size-threshold, -ilcth=int/--inline-cost-threshold,
-scopt=int/--sc-opt-level, -flib-no-inline/-fno-lib-no-inline,
-fuser-no-inline/-fno-user-no-inline,
-scras=int/--sc-si-opt-reg-alloc-strategy, -fsc-post-ra-sched,
-fsc-live-sched/-fno-sc-live-sched, -fsc-use-buffer-for-hsa-global,
-fsc-schedule-no-reorder, -fsc-min-reg-schedule,
-fsc-bias-schedule-to-minimize-insts,
-fsc-bias-schedule-to-minimize-regs, -fsc-disable-merge-memory,
-fsc-disable-loop-unroll, -fsc-use-mubuf/-fno-sc-use-mubuf,
-fsc-selective-inline/-fno-sc-selective-inline,
-fsc-keep-calls/-fno-sc-keep-calls, -slc=0|1/--simplifylibcall,
-stack-alignment=<n>, -fdiv2fmul=0|1, -prt-opt-liveness=0|1,
-liveness=0|1, -SRAE-threshold=<value>, -memcombine-max-vec-gen=<value>,
-small-global-objects, -fast-fmaf, -fast-fma, -bfo=0|1, -ebb=0|1, -aa,
-mem2reg=0|1, -licm=0|1, -unroll-allow-partial,
-unroll-threshold=<positive integer>, -unroll-count=<positive integer>,
-apt/--ap-threshold=<positive integer>, -srt/--sr-threshold=<positive
integer>, -fdebug-linker/-fno-debug-linker, -fbin-gpu64/-fno-bin-gpu64,
-fbin-disasm/-fno-bin-disasm, -fbin-bif30, -fbin-hsail/-fno-bin-hsail,
-fbin-amdil/-fno-bin-amdil, -fbin-spir/-fno-bin-spir, -fonly-bin-source,
-fper-pointer-uav/-fno-per-pointer-uav

Change-Id: I1af5b0a11b55bf75b727057143159fbbf1bb8f0e


[ROCm/clr commit: 15b8cf911a]
2023-12-21 10:18:37 -05:00
Konstantin Zhuravlyov cdaea3b1be SWDEV-325538 - Enable code object v5 by default
Change-Id: I8c2bd415461403366de6e8b9157dd2fa6dc0c2a6


[ROCm/clr commit: 5914ac3c6e]
2023-06-20 11:08:50 -04:00
German 00b9c77a3a SWDEV-404940 - Pass -cl-uniform-work-group-size to clang
Change-Id: I460dd848d439204e60f618669aef86f77e094c1a


[ROCm/clr commit: f13988b88b]
2023-06-19 19:44:29 -04:00
Juan Manuel MARTINEZ CAAMAÑO ed84e3c9fa SWDEV-287018 - Generate tempraries for _optimized.bc and _linked.bc if -save-temp-all is passed.
Change-Id: Ie8a7af66f0764f0a94948d45d7deed786f799c96


[ROCm/clr commit: 9b8005d758]
2022-11-15 07:49:07 -05:00
Juan Manuel MARTINEZ CAAMAÑO cc0d1ebba3 SWDEV-286150 - [NFC] Avoid copying string when calling HashString
Change-Id: Ic2f4d469ca319f7d31814b3955430dbbfdad5bb2


[ROCm/clr commit: f5e982cc07]
2022-11-08 07:07:06 -05:00
Jeremy Newton d4274a37c7 SWDEV-1 - Fix typo in compiler utils
Found by the Debian maintainers:
https://github.com/ROCm-Developer-Tools/ROCclr/issues/28

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I8c09913f7b7f4ad02f12a0630f15e66bdd5360a7


[ROCm/clr commit: 65fd4f5f07]
2022-09-29 18:14:29 -04:00
German Andryeyev eccf328c14 SWDEV-307184 - Make sure runtime passes CO version into comgr
Disable devlib linking when runtime links multiple objects from
the app. Otherwise devlibs will be linked twice and may cause
undefined behavior with COv5.

Change-Id: I3b8640c64ff898893225fe3af5b4b4a32d42bf40


[ROCm/clr commit: c275d9b4b3]
2022-04-25 09:53:59 -04:00
Satyanvesh Dittakavi 85c2cac111 SWDEV-306939 - Fix vdi errors/warnings by CppCheck
Change-Id: I56d910f8363787f1050d5d7e8064ed553c5827fd


[ROCm/clr commit: e20dd61932]
2022-01-12 00:22:16 -05:00
agunashe 49f0546637 SWDEV-293742 - Update copyright end year VDI repo
Change-Id: I69d2fea4a7a43adf96ccea794270e4af991c5261


[ROCm/clr commit: d96481fb36]
2021-08-22 23:56:07 -07:00
Jason Tang 8dffe9c8e6 SWDEV-269880 - Fix luxmark 3.1 segfaults
To workaround a bug in std::regex() implementation.

Change-Id: I4ea2b40e0b74ee1ee79d31283937e43d361d37c2


[ROCm/clr commit: 4791447370]
2021-02-01 16:12:36 -05:00
Tony Tye a34ae9cfcf Ensure dump file names do not contain special characters
When TargetID is supported, the isa name will contain ':' characters
that are not legal in Windows file names. So replace all
non-aphanumeric or '+'/'-' characters with '_' to ensure the file name
will be legal on any file system.

Change-Id: I0b73a6188c186f75f1d2e8af19ade87667cbfe0b


[ROCm/clr commit: ed6d54b416]
2021-01-13 08:24:28 +00:00
Tao Sang 44eb207f8d Apply constexpr on global constant varaibles
When HIP_ENABLE_DEFERRED_LOADING=0, many global variables will be
referenced but they are not initialized in that early time. The patch
will use constexpr to initialze global constant varables in compile
time.

Change-Id: I9d538b7abc6a0ce700ec3332b97fc144db5fc1ef


[ROCm/clr commit: fdef6f722f]
2020-07-22 22:14:13 -04:00
Tao Sang 7591ff8172 Fix static lib crash by setting top init_priority
Set top init_priority on affecting global variables so that
they will be created firstly and destroyed lastly.

Change-Id: Ied59fbecab66ba8195c4a7a02b6bef9fa2fad3af


[ROCm/clr commit: f7bf882981]
2020-07-06 16:54:10 -04:00
Matt Arsenault 8892ba072f Fix unused function warnings for conditionally used functions
Change-Id: Ied23c571b949abef1816914986f19b14aca3d2f3


[ROCm/clr commit: c56a82fd05]
2020-07-06 10:28:43 -04:00
Matt Arsenault a2b54e7b4a Fix -Wunused-private-field
Change-Id: Iedf121025a33bf08eed310e3d85302f8bf3ac7d9


[ROCm/clr commit: 7124974148]
2020-07-06 10:27:43 -04:00
Laurent Morichetti e284923583 Update copyright info
Change-Id: Ia4f9ff0f5f873b4223a8cca154188bb0d2f1abba


[ROCm/clr commit: b4c6143a2f]
2020-02-04 09:26:14 -08:00
Laurent Morichetti 011f3e945b Merge branch 'origin/pghafari/vdi-prototype' into lmoriche/amd-master
Change-Id: Id3b833d405596735becb3346f3b08c6da57033fe


[ROCm/clr commit: 20c7173849]
2020-01-30 20:12:13 -08:00
foreman 0240254538 P4 to Git Change 2008360 by gandryey@gera-win10 on 2019/10/03 18:48:04
SWDEV-204999 - [hipclang-vdi-rocm] TF unit test tracking.util_xla_test_gpu fails to run
	- Fix a regression with 32bit binaries in HSAIL mode

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.hpp#28 edit


[ROCm/clr commit: 371a872e7c]
2019-10-03 18:51:01 -04:00
foreman 518f6edb43 P4 to Git Change 2008325 by gandryey@gera-win10 on 2019/10/03 17:06:49
SWDEV-204999 - [hipclang-vdi-rocm] TF unit test tracking.util_xla_test_gpu fails to run
	- Change the HSACO detection logic to use e_machine
	- Allow to load a binary without any kernel.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.hpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#63 edit


[ROCm/clr commit: 02fbea29d6]
2019-10-03 17:12:38 -04:00
foreman 03a3c1738c P4 to Git Change 1989679 by gandryey@gera-win10 on 2019/08/27 11:34:19
SWDEV-200422 - Teamcity built OpenCL ignores all options from LC backend
	- Pass LC argument into parseAllOptions()

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#46 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.hpp#22 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#103 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#47 edit


[ROCm/clr commit: 6547f9e31b]
2019-08-27 11:42:23 -04:00
foreman 2d94f35089 P4 to Git Change 1989420 by kzhuravl@kzhuravl-spot-ocl on 2019/08/27 01:51:48
SWDEV-79445 - Prep for switch to gcc7.4 for OpenCL builds

		- Enable gcc7.4

Affected files ...

... //depot/stg/opencl/drivers/opencl/Makefile#72 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/complibdefs#57 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm39/llvmdefs#3 edit
... //depot/stg/opencl/drivers/opencl/opencldefs#263 edit
... //depot/stg/opencl/drivers/opencl/runtime/runtimedefs#53 edit
... //depot/stg/opencl/drivers/opencl/support/Makefile#1 add
... //depot/stg/opencl/drivers/opencl/support/build/Makefile#1 add
... //depot/stg/opencl/drivers/opencl/support/build/Makefile.support#1 add


[ROCm/clr commit: c27dab0d39]
2019-08-27 01:57:04 -04:00
foreman 2394de9b37 P4 to Git Change 1984520 by vsytchen@vsytchen-remote-ocl-win10 on 2019/08/16 11:35:50
SWDEV-198885 - [CQE][OCL][NAVI10][NAVI14 ] compiler temps not generated

	Blender 2.8 spawns a new process for each kernel to be compiled. This makes saving temporaries impossible, since all of the kernels will have the same file names.

	1. Add a formatting field %pid% to the dump prefix of -save-temps/-save-temps-all. The runtime will replace this field with the PID of the current process.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.hpp#21 edit


[ROCm/clr commit: 133a9ef59b]
2019-08-16 11:44:16 -04:00
foreman 6dd153cdc0 P4 to Git Change 1978640 by todli@todli-win-opencl-kv1 on 2019/08/06 02:44:22
SWDEV-198179 - Add Renoir Support to OpenCL Staging

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/amuABI.h#24 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/amuABIMultiBinary.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#41 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#57 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#52 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#159 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#607 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#249 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#363 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#191 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/caltarget.h#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbedefs#45 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#93 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/BIFEnumCheck.cpp#31 edit


[ROCm/clr commit: 194bddebaf]
2019-08-06 02:47:47 -04:00
foreman f4cbe3a464 P4 to Git Change 1914428 by gandryey@gera-win10 on 2019/06/27 18:22:17
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove all compilaiton flags for LC. LC should be selected dynamically only.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#141 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#146 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#86 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#130 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#312 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/macros.hpp#12 edit


[ROCm/clr commit: c3f3ef430f]
2019-06-27 18:24:28 -04:00
foreman cf59d77059 P4 to Git Change 1826056 by jatang@jatang_win_pal_lc on 2019/06/13 15:35:07
SWDEV-174198 - MI100: fix typo.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#56 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#51 edit


[ROCm/clr commit: f4024263ff]
2019-06-14 04:14:23 -04:00
foreman 55d199d0b7 P4 to Git Change 1792897 by jatang@jatang_rocm_lc3 on 2019/06/06 14:28:32
SWDEV-174198 - Re-submit support for MI100.

	MI100 ID has been promoted to //depot/main/drivers/inc/asic/reg/ai_id.h

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#162 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#59 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#55 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#50 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#72 edit


[ROCm/clr commit: 10493a57a8]
2019-06-06 15:55:06 -04:00
foreman 60bed323a1 P4 to Git Change 1776881 by jatang@jatang_win_pal_lc on 2019/05/01 11:04:10
SWDEV-174198 - Back out changelist 1776874.

	Need to wait for //depot/main/drivers/inc/asic_reg/ai_id.h promotion.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#161 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#39 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#58 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#54 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#49 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#71 edit


[ROCm/clr commit: e79e3e6f21]
2019-05-01 11:49:17 -04:00
foreman bfefbd1dc0 P4 to Git Change 1776874 by jatang@jatang_win_pal_lc on 2019/05/01 10:56:52
SWDEV-174198 - Add support for MI100.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#160 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#57 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#53 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#48 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#70 edit


[ROCm/clr commit: c8d38859e0]
2019-05-01 11:44:42 -04:00
foreman 3a2d23357a P4 to Git Change 1757959 by asalmanp@asalmanp-ocl-stg on 2019/03/18 18:53:08
SWDEV-132899 - [OCL][GFX10] propagate "force-wgp-mode" option to finalizer

	ReviewRequestURL = ReviewRequestURL = http://ocltc.amd.com/reviews/r/16894/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/hsail_be.cpp#71 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#140 edit


[ROCm/clr commit: ddba7b6c8d]
2019-03-18 19:12:32 -04:00
foreman f4f025f03d P4 to Git Change 1751553 by asalmanp@asalmanp-ocl-stg on 2019/03/05 11:04:28
SWDEV-132899 - [OCL][GFX10] adding support for Navi12(gfx1011) and Navi14 (gfx1012)

	reviewboardURL = http://ocltc.amd.com/reviews/r/16839/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/libUtils.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings.h#24 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail.h#27 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail64.h#27 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#159 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/amuABI.h#23 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/amuABIMultiBinary.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#37 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#56 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#52 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#47 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#69 edit


[ROCm/clr commit: b009cc829c]
2019-03-05 11:16:54 -05:00
foreman d28ca7eeeb P4 to Git Change 1739393 by kzhuravl@kzhuravl-fiji-ocllc-2 on 2019/02/03 16:46:26
SWDEV-178312 - Clean pre-GCN references

	Change by Roland Ouellette

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/api/v0_8/aclKstatsr800.cpp#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/amdil_be.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/devState7XX.cpp#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/devState7XX.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/scCompile7XX.cpp#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/scCompile7XX.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/scState7XX.cpp#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/scState7XX.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/devStateEGNI.cpp#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/devStateEGNI.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/scCompile89.cpp#6 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/scCompile89.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/scStateEGNI.cpp#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/scStateEGNI.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/devState.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/scCompile789.cpp#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/scCompile789.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/scCompileBase.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/scState.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/scState.h#2 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/include/v0_8/acl.h#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/libUtils.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/aclKstatsr800.cpp#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/amdil_be.cpp#46 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/acl.h#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#36 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#335 edit


[ROCm/clr commit: b82c92dbc7]
2019-02-03 16:55:44 -05:00
foreman 340a38bc2c P4 to Git Change 1618184 by kzhuravl@kzhuravl-fiji-ocllc-2 on 2018/10/12 14:28:12
SWDEV-125823 - Fix cmake-based opencl build from p4

	//depot/mirrors/amdgcn.git/* changes would be submitted through gerrit.

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#21 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#14 edit


[ROCm/clr commit: 2dcc063b81]
2018-10-18 03:07:56 -04:00
foreman 93e25f8df9 P4 to Git Change 1614278 by wchau@wchau_OCL_cmake on 2018/10/03 21:04:41
SWDEV-165756 - [ROCm] Backport cmake back into perforce to resolve cmake build broken issue
	(Resubmitted CL1613181 with a bug fix)

	- porting CMAKE changes in http://git.amd.com:8080/#/c/173995/
	- add new source file names in runtime/CMakeLists.txt
	-- required additional changes of CMAKE files from Konstantin to build the current OCL driver using CMAKE

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#17 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#34 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#15 edit


[ROCm/clr commit: 24437ae9d9]
2018-10-03 21:26:10 -04:00
foreman bb8e21d5b2 P4 to Git Change 1613229 by wchau@wchau_OCL_cmake on 2018/10/01 15:12:47
SWDEV-165756 - [ROCm] Backport cmake back into perforce to resolve cmake build broken issue
	- Back out changelist 1613181 as it causes TC build failures

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#16 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#33 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#33 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#14 edit


[ROCm/clr commit: 77da86d984]
2018-10-01 15:35:29 -04:00
foreman b3bc505946 P4 to Git Change 1613181 by wchau@wchau_OCL_cmake on 2018/10/01 14:34:03
SWDEV-165756 - [ROCm] Backport cmake back into perforce to resolve cmake build broken issue

	- porting CMAKE changes in http://git.amd.com:8080/#/c/173995/
	- add new source file names in runtime/CMakeLists.txt
	-- required additional changes of CMAKE files from Konstantin to build the current OCL driver using CMAKE

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#15 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#32 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#32 edit
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#13 edit


[ROCm/clr commit: 0d5e7c39e2]
2018-10-01 15:09:26 -04:00
foreman 5e860e3dc0 P4 to Git Change 1600103 by emankov@em-hsa on 2018/08/30 13:45:44
SWDEV-143465 - HSAIL - Compiler Lib - Stop supporting SPIR binary on CI+ as well

	This change plugs a hole when compiling from SPIR precompiled binary is possible on CI+ devices without option "-x spir" specified.
	SPIR text has been already deprecated.

	[Reviewers] Brian Sumner, Stanislav Mekhanoshin

	[Testing] http://ocltc.amd.com:8111/viewModification.html?modId=107222&personal=true&tab=vcsModificationBuilds

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#101 edit


[ROCm/clr commit: da2aa0859e]
2018-08-30 14:01:59 -04:00
foreman 6d6577b374 P4 to Git Change 1584842 by asalmanp@asalmanp-ocl-stg on 2018/07/24 16:31:05
SWDEV-132899 - Removing gfx1001 and adding gfx1010 target for Navi10 (gfx10.1)

	ReviewURLBoard = http://ocltc.amd.com/reviews/r/15473/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/libUtils.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings.h#23 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail.h#26 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail64.h#26 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#158 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#55 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#51 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#46 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#68 edit


[ROCm/clr commit: b207b2ae94]
2018-07-24 17:00:55 -04:00
foreman bd530def40 P4 to Git Change 1584825 by asalmanp@asalmanp-ocl-stg on 2018/07/24 16:08:09
SWDEV-132899 - Propagate -xnack option to Finalizer

	ReviewURLBoard = http://ocltc.amd.com/reviews/r/15478/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/hsail_be.cpp#70 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#139 edit


[ROCm/clr commit: 439ddcff00]
2018-07-24 16:41:18 -04:00
foreman 8c03d1ce49 P4 to Git Change 1548048 by gandryey@gera-w8 on 2018/04/30 16:08:29
SWDEV-151981 - Removal of CPU support on Windows
	- Part 1. Remove makefile options for CPU device support

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#174 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/complibdefs#12 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/complibdefs#56 edit
... //depot/stg/opencl/drivers/opencl/library/Makefile#33 edit
... //depot/stg/opencl/drivers/opencl/opencldefs#226 edit
... //depot/stg/opencl/drivers/opencl/runtime/Makefile#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#217 edit


[ROCm/clr commit: f5375395f3]
2018-04-30 20:23:40 -04:00
foreman ff6fbed446 P4 to Git Change 1534546 by emankov@em-hsa on 2018/03/29 13:38:05
SWDEV-143465 - HSAIL/AMDIL - Compiler Lib - Add missing error logging

	Missing appendLogToCL is added to IsValidCompilationOption functions.

	[testing] http://ocltc.amd.com:8111/viewModification.html?modId=100104&personal=true&tab=vcsModificationBuilds

	[reviewed] by Stas (http://ocltc.amd.com/reviews/r/14522)

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/common/v0_8/if_acl.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#100 edit


[ROCm/clr commit: 641fd3c85c]
2018-03-29 13:50:06 -04:00
foreman 4e75880b8e P4 to Git Change 1532400 by emankov@em-hsa on 2018/03/26 13:44:26
SWDEV-143465 - Stop building static C++ kernels on CI+

	Changed legacy HSAIL/AMDIL stack logic:
	    1. Stop supporting AMDIL on CI+ devices: "AMDIL doesn't support device ..." will be reported.
	    2. Stop handling OpenCL extension options in RT: if "-x spir" or "-x clc++" option is specified, it wouldn't force legacy AMDIL compiler anymore.
	    3. Start reporting error on "-legacy" option in HSAIL compiler. If we reach HSAIL compiler, then it means that there are conflicting options. Report them all, possible options are: -frontend=edg, -cl-std=CL2.0 (>= 2.0), -binary_is_spirv.

	Already submitted changes in stack logic:
	    1. Start reporting error for SI devices on HSAIL path.
	    2. Start handling OpenCL extension options on HSAIL path: report error on "-x spir" or "-x clc++" options.

	[testing] http://ocltc.amd.com:8111/viewModification.html?modId=99901&personal=true&tab=vcsModificationBuilds

	[reviewed] by Stas and German: http://ocltc.amd.com/reviews/r/14270

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/common/v0_8/if_acl.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#99 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#586 edit


[ROCm/clr commit: 3876272309]
2018-03-26 13:50:18 -04:00
foreman 3d4652b8a3 P4 to Git Change 1524559 by asalmanp@asalmanp-ocl-stg on 2018/03/08 14:18:24
SWDEV-132899 - [gfx10][OCL]- Adding support for forcing WaveSize32 from runtime for testing on gfx10 HW emulator

	Motivation: During testing ocltst on Windows on PAL/HSAIL/SC path on gfx10 HW emulator, it was found that SC uses WaveSize64 by default for compute kernels.
	SC also has an interface that can be used for forcing the WaveSize to 32 or 64.

	- Adding the "-force-wave-size-32" into compiler to be passed down to Finalizer/SC
	- Adding environment variable "GPU_FORCE_WAVE_SIZE_32" that can be used from runtime to force WaveSize32 compilation in HSAIL/SC path

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/14364/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/hsail_be.cpp#69 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#138 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#55 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#284 edit


[ROCm/clr commit: 3c0e80074b]
2018-03-08 14:26:17 -05:00