Skip to content

Commit 8ef15c3

Browse files
pcaspersjenkins
authored andcommitted
clean checkout
1 parent 9c9bc8b commit 8ef15c3

11 files changed

Lines changed: 816 additions & 13410 deletions

Docker/Dockerfile-multistage

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,12 @@
11
ARG debian_tag
22

3-
# boost
4-
5-
FROM debian:${debian_tag} as boost
6-
7-
ARG boost_tag
8-
ARG boost_dir
9-
ARG boost_variant
10-
ARG num_cores
11-
12-
RUN apt-get update && apt-get upgrade -y \
13-
&& apt-get install -f -y build-essential wget libbz2-dev zlib1g-dev
14-
15-
RUN wget https://boostorg.jfrog.io/artifactory/main/release/${boost_tag}/source/boost_${boost_dir}.tar.gz
16-
17-
RUN tar xfz boost_${boost_dir}.tar.gz \
18-
&& cd boost_${boost_dir} \
19-
&& ./bootstrap.sh \
20-
&& ./b2 --without-python -j ${num_cores} link=shared runtime-link=shared variant=${boost_variant} install
21-
223
# ore build
234

245
FROM debian:${debian_tag} as orebuild
256

267
ARG num_cores
278
ARG cmake_build_type
289

29-
COPY --from=boost /usr/local/include/boost /usr/local/include/boost
30-
COPY --from=boost /usr/local/lib/libboost* /usr/local/lib
31-
3210
COPY CMakeLists.txt /ore/CMakeLists.txt
3311
COPY .clang-format /ore/.clang-format
3412
COPY .gitignore /ore/.gitignore
@@ -54,7 +32,7 @@ COPY Tools ore/Tools
5432
COPY xsd ore/xsd
5533

5634
RUN apt-get update && apt-get upgrade -y \
57-
&& apt-get install -f -y build-essential libbz2-dev cmake ninja-build zlib1g-dev opencl-headers ocl-icd-opencl-dev
35+
&& apt-get install -f -y build-essential libbz2-dev cmake ninja-build zlib1g-dev libboost-all-dev opencl-headers ocl-icd-opencl-dev
5836

5937
RUN cd / \
6038
&& mkdir -p build_ore && cd build_ore \

Docker/docker-compose-multistage.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@ services:
88
dockerfile: Docker/Dockerfile-multistage
99
args:
1010
- debian_tag=${DEBIAN_TAG}
11-
- boost_tag=${BOOST_TAG}
12-
- boost_dir=${BOOST_DIR}
13-
- boost_variant=${BOOST_VARIANT}
1411
- num_cores=${NUM_CORES}
12+
- cmake_build_type=${CMAKE_BUILD_TYPE}

OREData/ored/utilities/initbuilders.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
#include <ored/portfolio/builders/bondtotalreturnswap.hpp>
4141
#include <ored/portfolio/builders/cachingenginebuilder.hpp>
4242
#include <ored/portfolio/builders/capfloor.hpp>
43-
#include <ored/portfolio/builders/capflooredaverageonindexedcouponleg.hpp>
4443
#include <ored/portfolio/builders/capflooredaveragebmacouponleg.hpp>
44+
#include <ored/portfolio/builders/capflooredaverageonindexedcouponleg.hpp>
4545
#include <ored/portfolio/builders/capflooredcpileg.hpp>
4646
#include <ored/portfolio/builders/capfloorediborleg.hpp>
4747
#include <ored/portfolio/builders/capfloorednonstandardyoyleg.hpp>
@@ -175,6 +175,7 @@
175175
#include <ored/portfolio/varianceswap.hpp>
176176

177177
#include <qle/math/openclenvironment.hpp>
178+
#include <qle/math/basiccpuenvironment.hpp>
178179

179180
#include <boost/thread/lock_types.hpp>
180181
#include <boost/thread/shared_mutex.hpp>
@@ -433,6 +434,7 @@ void initBuilders() {
433434
ORE_REGISTER_TRS_UNDERLYING_BUILDER("CBO", CBOTrsUnderlyingBuilder, false)
434435

435436
ORE_REGISTER_COMPUTE_FRAMEWORK_CREATOR("OpenCL", QuantExt::OpenClFramework, false);
437+
ORE_REGISTER_COMPUTE_FRAMEWORK_CREATOR("BasicCpu", QuantExt::BasicCpuFramework, false);
436438
}
437439

438440
} // namespace ore::data

QuantExt/qle/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ instruments/subperiodsswap.cpp
141141
instruments/syntheticcdo.cpp
142142
instruments/tenorbasisswap.cpp
143143
instruments/varianceswap.cpp
144+
math/basiccpuenvironment.cpp
144145
math/blockmatrixinverse.cpp
145146
math/bucketeddistribution.cpp
146147
math/computeenvironment.cpp
@@ -152,6 +153,7 @@ math/matrixfunctions.cpp
152153
math/openclenvironment.cpp
153154
math/randomvariable.cpp
154155
math/randomvariable_io.cpp
156+
math/randomvariable_ops.cpp
155157
math/randomvariablelsmbasissystem.cpp
156158
methods/brownianbridgepathinterpolator.cpp
157159
methods/fdmdefaultableequityjumpdiffusionfokkerplanckop.cpp
@@ -474,7 +476,6 @@ indexes/frcpi.hpp
474476
indexes/fxindex.hpp
475477
indexes/genericiborindex.hpp
476478
indexes/genericindex.hpp
477-
indexes/iborindexfixingoverride.hpp
478479
indexes/ibor/ambor.hpp
479480
indexes/ibor/ameribor.hpp
480481
indexes/ibor/boebaserate.hpp
@@ -527,6 +528,7 @@ indexes/ibor/thbbibor.hpp
527528
indexes/ibor/thor.hpp
528529
indexes/ibor/tonar.hpp
529530
indexes/ibor/twdtaibor.hpp
531+
indexes/iborindexfixingoverride.hpp
530532
indexes/inflationindexobserver.hpp
531533
indexes/inflationindexwrapper.hpp
532534
indexes/offpeakpowerindex.hpp
@@ -585,6 +587,7 @@ instruments/tenorbasisswap.hpp
585587
instruments/vanillaforwardoption.hpp
586588
instruments/varianceswap.hpp
587589
interpolators/optioninterpolator2d.hpp
590+
math/basiccpuenvironment.hpp
588591
math/blockmatrixinverse.hpp
589592
math/bucketeddistribution.hpp
590593
math/computeenvironment.hpp
@@ -606,6 +609,7 @@ math/quadraticinterpolation.hpp
606609
math/randomvariable.hpp
607610
math/randomvariable_io.hpp
608611
math/randomvariable_opcodes.hpp
612+
math/randomvariable_ops.hpp
609613
math/randomvariablelsmbasissystem.hpp
610614
math/stabilisedglls.hpp
611615
math/trace.hpp

0 commit comments

Comments
 (0)