onnxruntime/cmake
cloudhan 2de883c592
Update CK and fix performance issue on dev machine (#13531)
1. Update CK to its latest develop branch
2. `-mllvm -amdgpu-early-inline-all=true` is critical to CK's
performance, ensure it is properly configured.
- The flags are propagated from target `hip-lang::device`'s
`INTERFACE_COMPILE_OPTIONS`, we must not manually add the flags.
- Instead, we must ensure this target is properly configured by checking
_CMAKE_HIP_DEVICE_RUNTIME_TARGET is set.

TL,DR

`hip-lang::device` sometime will be not be properly configured if our
`CMAKE_PREFIX_PATH` is not configured carefully. In the CI docker, the
configuration is in good state, but on dev machine it is not, which then
silently result poor performance for kernels. We fixed it in this PR and
add a guard to avoid unsuccessful future editing and to prevent
convoluted debugging process.

`_CMAKE_HIP_DEVICE_RUNTIME_TARGET ` is shared in
`/opt/rocm/lib/cmake/hip-lang/hip-lang-config.cmake` and it is internal
to
[CMake](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6121/diffs),
the variable name will not be changed in the foreseeable future.
2022-11-03 19:32:30 +08:00
..
external Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
patches Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
tensorboard Disable two warnings raised by tensorboard on Visual Studio (#12773) 2022-09-06 20:42:52 +02:00
CMakeLists.txt Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
CMakeSettings.json
codeconv.runsettings
EnableVisualStudioCodeAnalysis.props
find_snpe.cmake cmake changes for SNPE EP (#11821) 2022-06-13 08:15:37 -07:00
gdk_toolchain.cmake Enable building with a GDK (#11126) 2022-04-07 15:06:31 -07:00
Info.plist.in
libonnxruntime.pc.cmake.in
nuget_helpers.cmake
onnxruntime.cmake Remove miscellaneous nuphar configs (#13070) 2022-09-26 13:41:28 -07:00
onnxruntime_codegen_tvm.cmake Update our absl cmake files (#10762) 2022-03-04 09:28:04 -08:00
onnxruntime_common.cmake Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
onnxruntime_config.h.in
onnxruntime_csharp.cmake Remove miscellaneous nuphar configs (#13070) 2022-09-26 13:41:28 -07:00
onnxruntime_eager.cmake Update our absl cmake files (#10762) 2022-03-04 09:28:04 -08:00
onnxruntime_flatbuffers.cmake Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
onnxruntime_framework.cmake ATen Fallback for Inference (#11597) 2022-06-09 16:07:30 +08:00
onnxruntime_fuzz_test.cmake
onnxruntime_graph.cmake ONNX Protobuf natvis with some google::protobuf (#12580) 2022-08-15 09:59:07 -07:00
onnxruntime_ios.toolchain.cmake
onnxruntime_java.cmake Add linux and macos arm64 java aritifacts (#10981) 2022-03-25 16:23:17 -07:00
onnxruntime_java_unittests.cmake
onnxruntime_kernel_explorer.cmake Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
onnxruntime_language_interop_ops.cmake
onnxruntime_mlas.cmake Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
onnxruntime_nodejs.cmake
onnxruntime_objectivec.cmake
onnxruntime_opschema_lib.cmake
onnxruntime_optimizer.cmake [cmake] Export multi targets in static build (#11063) 2022-04-03 22:37:18 -07:00
onnxruntime_providers.cmake Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
onnxruntime_pyop.cmake
onnxruntime_python.cmake Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
onnxruntime_rocm_hipify.cmake Drop hip_add_library (#13406) 2022-10-25 12:57:48 +08:00
onnxruntime_session.cmake Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
onnxruntime_snpe_provider.cmake cmake changes for SNPE EP (#11821) 2022-06-13 08:15:37 -07:00
onnxruntime_training.cmake Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
onnxruntime_unittests.cmake Update CK and fix performance issue on dev machine (#13531) 2022-11-03 19:32:30 +08:00
onnxruntime_util.cmake [cmake] Export multi targets in static build (#11063) 2022-04-03 22:37:18 -07:00
onnxruntime_webassembly.cmake increase max memory to 4G for wasm (#12798) 2022-09-06 17:07:13 -07:00
precompiled_header.cmake
protobuf_function.cmake
Sdl.ruleset Update Sdl.ruleset to remove C26812 from the rules (#12695) 2022-09-01 20:05:20 -07:00
set_winapi_family_desktop.h
target_delayload.cmake Remove Windows Store specific code 2022-03-17 23:38:14 -07:00
uwp_stubs.h
wcos_rules_override.cmake
wil.cmake
winml.cmake Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
winml_cppwinrt.cmake
winml_sdk_helpers.cmake
winml_unittests.cmake Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00