Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
addda997
Commit
addda997
authored
Sep 05, 2017
by
Mccaskey, Alex
Browse files
Adding program ir constructor
parent
e43c211d
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
addda997
...
...
@@ -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
}
...
...
xacc/program/Program.hpp
View file @
addda997
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment