From 89634ecb6ea3a868503b608a7aff16836c6c97ff Mon Sep 17 00:00:00 2001 From: Paulius Velesko Date: Tue, 5 Nov 2024 14:09:27 +0200 Subject: [PATCH] WIP --- src/backend/OpenCL/CHIPBackendOpenCL.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/OpenCL/CHIPBackendOpenCL.cc b/src/backend/OpenCL/CHIPBackendOpenCL.cc index 42575002f..7029abd70 100644 --- a/src/backend/OpenCL/CHIPBackendOpenCL.cc +++ b/src/backend/OpenCL/CHIPBackendOpenCL.cc @@ -1154,7 +1154,9 @@ void CHIPModuleOpenCL::compile(chipstar::Device *ChipDev) { appendRuntimeObjects(*ChipCtxOcl->get(), *ChipDevOcl, ClObjects); auto linkStart = std::chrono::high_resolution_clock::now(); - Program_ = cl::linkProgram(ClObjects, nullptr, nullptr, nullptr, &Err); + auto Flags = Backend->getDefaultJitFlags() + " " + ChipEnvVars.getJitFlags(); + logInfo("JIT Link flags: {}", Flags); + Program_ = cl::linkProgram(ClObjects, Flags.c_str(), nullptr, nullptr, &Err); auto linkEnd = std::chrono::high_resolution_clock::now(); auto linkDuration = std::chrono::duration_cast( linkEnd - linkStart);