| 288 | } |
| 289 | |
| 290 | cudaq::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 | |
| 317 | const RuntimeTarget *quantum_platform::get_runtime_target() const { |
| 318 | return runtimeTarget.get(); |
no test coverage detected