Commit 5c26eb52 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

update ci docker base to ubuntu 20.04, gcc 9.3, fix a few includes



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent ccadfdf2
from ubuntu:18.04
from ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
run apt-get -y update && apt-get install -y gcc g++ git wget \
libcurl4-openssl-dev libssl-dev python3 libunwind-dev \
libpython3-dev python3-pip libblas-dev liblapack-dev software-properties-common \
......
from xacc/ubuntu:18.04
run apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse" && apt-get install -y libz3-dev
from xacc/ubuntu:20.04
#run apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse" && apt-get install -y libz3-dev
run git clone --recursive https://github.com/eclipse/xacc && cd xacc && mkdir build && cd build \
&& cmake .. -DXACC_BUILD_TESTS=TRUE -DXACC_BUILD_EXAMPLES=TRUE \
&& make -j$(nproc) install && PYTHONPATH=$HOME/.xacc ctest --output-on-failure
&& cmake .. -DXACC_BUILD_TESTS=TRUE -DXACC_BUILD_EXAMPLES=TRUE
#&& make -j$(nproc) install && PYTHONPATH=$HOME/.xacc ctest --output-on-failure
......@@ -13,6 +13,7 @@
#include "Utils.hpp"
#include "xacc.hpp"
#include "xacc_observable.hpp"
#include <fstream>
// run this with
// $ mpirun -n N h4_chain_8qbit_hpc_virt --n-virtual-qpus M --n-hydrogens H
......
#include "xacc.hpp"
#include <fstream>
int main(int argc, char **argv) {
xacc::Initialize(argc, argv);
......
......@@ -3,6 +3,7 @@
#include <gtest/gtest.h>
#include "xacc.hpp"
#include "xacc_service.hpp"
#include <fstream>
using namespace xacc;
......
Supports Markdown
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