Commit 69a1063c authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

updates to set buffer name on measure all call


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent e5594bc2
Pipeline #97970 failed with stage
in 8 minutes and 24 seconds
......@@ -619,6 +619,7 @@ void XASMListener::exitComposite_generator(
for (std::size_t i = 0; i < size; i++) {
auto inst = irProvider->createInstruction(currentCompositeName,
std::vector<std::size_t>{i});
inst->setBufferNames({buffer->name()});
function->addInstruction(inst);
}
......
......@@ -510,7 +510,7 @@ void AcceleratorBuffer::print(std::ostream &stream) {
// end root object
writer.EndObject();
stream << buffer.GetString();
stream << buffer.GetString() << "\n";
}
const std::string AcceleratorBuffer::toString() {
......
......@@ -27,7 +27,7 @@ void compiler_InitializeXACC(const char *qpu_backend) {
setAccelerator(qpu_backend);
}
void compiler_InitializeXACC(const char *qpu_backend, const int shots) {
void compiler_InitializeXACC(const char *qpu_backend, int shots) {
if (!xacc::isInitialized()) {
xacc::Initialize();
xacc::external::load_external_language_plugins();
......@@ -50,7 +50,7 @@ void setAccelerator(const char *qpu_backend) {
}
}
void setAccelerator(const char *qpu_backend, const int shots) {
void setAccelerator(const char *qpu_backend, int shots) {
if (qpu) {
if (qpu_backend != qpu->name()) {
qpu = xacc::getAccelerator(qpu_backend, {std::make_pair("shots", shots)})
......
......@@ -28,10 +28,10 @@ extern bool __execute;
enum OptLevel { DEFAULT, LEVEL1, LEVEL2, LEVEL3 };
void compiler_InitializeXACC(const char *qpu_backend = "local-ibm");
void compiler_InitializeXACC(const char *qpu_backend, const int shots);
void compiler_InitializeXACC(const char *qpu_backend, int shots);
void setAccelerator(const char *qpu_backend);
void setAccelerator(const char *qpu_backend, const int shots);
void setAccelerator(const char *qpu_backend, int shots);
Accelerator *get_qpu();
void __set_verbose(bool verbose);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment