MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / get_codegen_config

Method get_codegen_config

runtime/cudaq/platform/quantum_platform.cpp:290–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290cudaq::CodeGenConfig quantum_platform::get_codegen_config() {
291 if (runtimeTarget &&
292 !runtimeTarget->config.getCodeGenSpec(runtimeTarget->runtimeConfig)
293 .empty()) {
294 auto config = cudaq::parseCodeGenTranslation(
295 runtimeTarget->config.getCodeGenSpec(runtimeTarget->runtimeConfig));
296 return config;
297 }
298
299 // The target config doesn't specify a codegen setting
300 CodeGenConfig config = {.profile = "qir-adaptive",
301 .isQIRProfile = true,
302 .version = QirVersion::version_1_0,
303 .qir_major_version = 1,
304 .qir_minor_version = 0,
305 .isAdaptiveProfile = true,
306 .isBaseProfile = false,
307 .integerComputations = true,
308 .floatComputations = true,
309 .outputLog = !is_remote(),
310 .eraseStackBounding = false,
311 .eraseRecordCalls = false,
312 .allowAllInstructions = true};
313
314 return config;
315}
316
317const RuntimeTarget *quantum_platform::get_runtime_target() const {
318 return runtimeTarget.get();

Callers 1

runTheKernelMethod · 0.80

Calls 2

getCodeGenSpecMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected