Commit addda997 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Adding program ir constructor

parent e43c211d
......@@ -53,6 +53,7 @@ ExternalProject_Add(xacc-core
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/xacc
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
-DXACC_ROOT=${CMAKE_CURRENT_SOURCE_DIR}
......
......@@ -120,6 +120,10 @@ public:
src(sourceFile), accelerator(std::move(acc)) {
}
Program(std::shared_ptr<Accelerator> acc, const std::shared_ptr<xacc::IR> ir) :
xaccIR(std::move(ir)), accelerator(std::move(acc)) {
}
/**
* The Constructor, takes the Accelerator to execute on,
* and the source kernel string as a stream.
......
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