Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 00aa422

Browse files
authored
Merge pull request #177 from IBM/ntl_update_perf
Updated NTL version and added perf option
2 parents eb81c6e + 9f8681b commit 00aa422

10 files changed

+23
-19
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ FHE-Workspace
1111

1212
# Block dependencies that are automatically fetched in the build script
1313
DEPENDENCIES/NTL
14-
DEPENDENCIES/ntl-11.4.3.tar.gz
14+
DEPENDENCIES/ntl-*.tar.gz
1515

1616
DEPENDENCIES/HElib
1717
DEPENDENCIES/HElib-v1.0.2.tar.gz

ConfigConstants.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#Current versions we build against
2626
#
2727
# NTL Library
28-
NTL_version='11.4.3'
28+
NTL_version='11.5.1'
2929
#HELib Library
3030
HElib_version='v2.1.0'
3131
HElib_cmake_lists_version='2.1.0'

Dockerfile.ALPINE-s390x.Toolkit

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ USER root
1515
WORKDIR /root
1616

1717
# Install pre-reqs for building code-server
18-
RUN apk add --no-cache openssl python3 pkgconfig xterm libx11-dev libxkbfile-dev libsecret-dev nodejs yarn
18+
RUN apk add --no-cache openssl python3 pkgconfig xterm libx11-dev libxkbfile-dev libsecret-dev
19+
RUN apk add nodejs yarn
1920

2021
# Install code-server so we can access vscode from a container context...
2122
RUN yarn global add node-gyp
2223
RUN yarn global add node-pty
23-
RUN yarn global add code-server
24+
#RUN yarn global add code-server
2425

26+
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 3.9.1
2527
# Create a directory to hold the VSCode user data when running as root
2628
RUN mkdir -p /opt/IBM/IDE-Data
2729
RUN chown -R fhe:fhe /opt/IBM/IDE-Data

Dockerfile.ALPINE.HElib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN mkdir -p /opt/IBM/FHE-distro
3535
COPY ./DEPENDENCIES/NTL /opt/IBM/FHE-distro/NTL
3636
WORKDIR /opt/IBM/FHE-distro/NTL
3737
RUN cd ./src && \
38-
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on && \
38+
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on NTL_RANDOM_AES256CTR=on && \
3939
make -j4 && \
4040
make install && \
4141
ldconfig / && \

Dockerfile.CENTOS.HElib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN mkdir -p /opt/IBM/FHE-distro
5151
COPY ./DEPENDENCIES/NTL /opt/IBM/FHE-distro/NTL
5252
WORKDIR /opt/IBM/FHE-distro/NTL
5353
RUN cd ./src && \
54-
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on && \
54+
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on NTL_RANDOM_AES256CTR=on && \
5555
make -j4 && \
5656
make install && \
5757
ldconfig && \

Dockerfile.FEDORA-s390x.Toolkit

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ RUN yum -y install \
2727
RUN yum clean packages
2828

2929
# Istall Node.js v12+
30-
RUN curl -fsSL https://nodejs.org/dist/v12.18.2/node-v12.18.2-linux-s390x.tar.xz | tar --no-same-owner -Jxf -
31-
RUN cp -pr ./node-v12.18.2-linux-s390x/bin \
32-
./node-v12.18.2-linux-s390x/include \
33-
./node-v12.18.2-linux-s390x/lib \
34-
./node-v12.18.2-linux-s390x/share \
30+
RUN curl -fsSL https://nodejs.org/dist/v14.17.3/node-v14.17.3-linux-s390x.tar.xz | tar --no-same-owner -Jxf -
31+
RUN cp -pr ./node-v14.17.3-linux-s390x/bin \
32+
./node-v14.17.3-linux-s390x/include \
33+
./node-v14.17.3-linux-s390x/lib \
34+
./node-v14.17.3-linux-s390x/share \
3535
/usr/local
3636

37+
RUN npm install --global yarn
3738
# Install code-server so we can access vscode from a container context...
3839
#RUN curl -fsSL https://code-server.dev/install.sh | sh 2>&1
3940
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 3.9.1

Dockerfile.FEDORA.HElib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN mkdir -p /opt/IBM/FHE-distro
3939
COPY ./DEPENDENCIES/NTL /opt/IBM/FHE-distro/NTL
4040
WORKDIR /opt/IBM/FHE-distro/NTL
4141
RUN cd ./src && \
42-
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on && \
42+
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on NTL_RANDOM_AES256CTR=on && \
4343
make -j4 && \
4444
make install && \
4545
ldconfig && \

Dockerfile.UBUNTU-s390x.Toolkit

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y \
2828
libsecret-1-dev
2929

3030
# Istall Node.js v12+
31-
RUN curl -fsSL https://nodejs.org/dist/v12.18.2/node-v12.18.2-linux-s390x.tar.xz | tar --no-same-owner -Jxf -
32-
RUN cp -pr ./node-v12.18.2-linux-s390x/bin \
33-
./node-v12.18.2-linux-s390x/include \
34-
./node-v12.18.2-linux-s390x/lib \
35-
./node-v12.18.2-linux-s390x/share \
31+
RUN curl -fsSL https://nodejs.org/dist/v14.17.3/node-v14.17.3-linux-s390x.tar.xz | tar --no-same-owner -Jxf -
32+
RUN cp -pr ./node-v14.17.3-linux-s390x/bin \
33+
./node-v14.17.3-linux-s390x/include \
34+
./node-v14.17.3-linux-s390x/lib \
35+
./node-v14.17.3-linux-s390x/share \
3636
/usr/local
3737

38+
RUN npm install --global yarn
3839
# Install code-server so we can access vscode from a container context...
3940
#RUN curl -fsSL https://code-server.dev/install.sh | sh 2>&1
4041
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 3.9.1 2>&1

Dockerfile.UBUNTU.HElib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN mkdir -p /opt/IBM/FHE-distro
6464
COPY ./DEPENDENCIES/NTL /opt/IBM/FHE-distro/NTL
6565
WORKDIR /opt/IBM/FHE-distro/NTL
6666
RUN cd ./src && \
67-
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on && \
67+
./configure SHARED=on NTL_GMP_LIP=on NTL_THREADS=on NTL_THREAD_BOOST=on NTL_RANDOM_AES256CTR=on && \
6868
make -j4 && \
6969
make install && \
7070
ldconfig && \

scripts/jenkins/fhe_docker_jenkins_trigger_pr_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [[ "$BUILD_TYPE" == "S390" ]]; then
6666
echo 'S390 Stuff $BUILD_TYPE'
6767
test_toolkit "ubuntu"
6868
test_toolkit "fedora"
69-
test_toolkit "alpine"
69+
#test_toolkit "alpine"
7070

7171
else
7272
test_toolkit "ubuntu"

0 commit comments

Comments
 (0)