File tree 11 files changed +85
-12
lines changed
resources/lib/static/Linux/amd64
11 files changed +85
-12
lines changed Original file line number Diff line number Diff line change
1
+ .git
2
+ src
Original file line number Diff line number Diff line change @@ -226,12 +226,31 @@ all-static-jars:
226
226
#
227
227
# Docker development
228
228
#
229
- build-ubuntu20-04 :
230
- docker build -f dev-ubuntu20.04.Dockerfile -t jblas/dev-ubuntu2004 .
229
+ shell-ubuntu2004 :
230
+ docker build -f dev-ubuntu2004.Dockerfile -t jblas/dev-ubuntu2004 .
231
+ docker run --rm -v $(PWD ) :/home/dev jblas/dev-ubuntu2004 /bin/bash
231
232
232
- shell-ubuntu20-04 :
233
- docker run -it --rm -v $(PWD ) :/home/dev jblas/dev-ubuntu2004 /bin/bash
233
+ test-ubuntu2004 :
234
+ docker build -f test-ubuntu2004.Dockerfile -t jblas/test-ubuntu2004 .
235
+ docker run --rm jblas/test-ubuntu2004 /bin/bash
234
236
235
- test-ubuntu20-04 :
236
- docker build -f test-ubuntu20.04.Dockerfile -t jblas/test-ubuntu2004 .
237
- docker run --rm jblas/test-ubuntu2004
237
+
238
+ #
239
+ # Ubuntu18-04
240
+ #
241
+ shell-ubuntu1804 :
242
+ docker build -f dev-ubuntu1804.Dockerfile -t jblas/dev-ubuntu1804 .
243
+ docker run -it --rm -v $(PWD ) :/home/dev jblas/dev-ubuntu1804 /bin/bash
244
+
245
+ test-ubuntu1804 :
246
+ docker build -f test-ubuntu1804.Dockerfile -t jblas/test-ubuntu1804 .
247
+ docker run --rm jblas/test-ubuntu1804 /bin/bash
248
+
249
+
250
+ configure-static-openblas :
251
+ ./configure --static-libs --build-type=openblas
252
+
253
+ build :
254
+ make configure-static-openblas
255
+ make clean all
256
+ mvn package -Dmaven.test.skip=True
Original file line number Diff line number Diff line change
1
+ # Docker build environment for Ubuntu 18.04
2
+ # run as docker build -f dev-ubuntu2004.Dockerfile .
3
+
4
+ FROM ubuntu:18.04
5
+
6
+ ENV JBLAS_VERSION=1.2.4-SNAPSHOT
7
+
8
+ RUN apt-get update
9
+ RUN apt-get -y install less htop build-essential vim ruby
10
+ # RUN apt-get -y install libgfortran
11
+ RUN apt-get -y install openjdk-8-jdk-headless maven ant
12
+ RUN apt-get -y install gfortran libopenblas-dev
13
+ RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
14
+
15
+ CMD mkdir /home/dev
16
+ WORKDIR /home/dev
Original file line number Diff line number Diff line change
1
+ # Docker build environment for Ubuntu 20.04
2
+
3
+ # run as docker build -f dev-ubuntu2004.Dockerfile .
4
+
5
+ FROM ubuntu:20.04
6
+
7
+ ENV JBLAS_VERSION=1.2.4-SNAPSHOT
8
+
9
+ RUN apt-get update
10
+ RUN apt-get -y install less htop build-essential vim ruby
11
+ RUN apt-get -y install libgfortran5
12
+ RUN apt-get -y install openjdk-8-jdk-headless maven ant
13
+ RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
14
+
15
+ CMD mkdir /home/dev
16
+ WORKDIR /home/dev
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ static void loadLibraryAndCheckErrors() {
25
25
+ "from the archive. Consider installing the library somewhere "
26
26
+ "in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH)." );
27
27
28
- // potentially load dependet libraries (mostly Cygwin libs for Windows)
28
+ // potentially load dependent libraries (mostly Cygwin libs for Windows)
29
29
loadDependentLibraries ();
30
30
31
31
// Ok, and now load it!
@@ -71,6 +71,9 @@ public static void loadDependentLibraries() {
71
71
} else if (name .startsWith ("Windows" ) && arch .equals ("x86" )) {
72
72
loader .loadLibrary ("libgcc_s_dw2-1" , false );
73
73
loader .loadLibrary ("libgfortran-3" , false );
74
+ } else if (name .equals ("Linux" ) && arch .equals ("amd64" )) {
75
+ loader .loadLibrary ("quadmath-0" , false );
76
+ loader .loadLibrary ("gfortran-4" , false );
74
77
}
75
78
}
76
79
}
Original file line number Diff line number Diff line change
1
+ # Docker build environment for Ubuntu 20.04
2
+
3
+ # run as docker build -f test-ubuntu2004.Dockerfile .
4
+
5
+ FROM ubuntu:18.04
6
+
7
+ ENV JBLAS_VERSION=1.2.4-SNAPSHOT
8
+
9
+ RUN apt-get update
10
+ RUN apt-get -y install openjdk-8-jdk-headless
11
+ RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
12
+
13
+ RUN mkdir /home/dev
14
+ WORKDIR /home/dev
15
+
16
+ COPY target/jblas-${JBLAS_VERSION}.jar .
17
+
18
+ RUN java -jar jblas-${JBLAS_VERSION}.jar
Original file line number Diff line number Diff line change 1
1
# Docker build environment for Ubuntu 20.04
2
2
3
- # run as docker build -f test-ubuntu20.04 .Dockerfile .
3
+ # run as docker build -f test-ubuntu2004 .Dockerfile .
4
4
5
5
FROM ubuntu:20.04
6
6
7
7
ENV JBLAS_VERSION=1.2.4-SNAPSHOT
8
8
9
9
RUN apt-get update
10
- RUN apt-get -y install libgfortran5
11
10
RUN apt-get -y install openjdk-8-jdk-headless
12
11
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
13
12
14
- CMD mkdir /home/dev
13
+ RUN mkdir /home/dev
15
14
WORKDIR /home/dev
16
15
17
16
COPY target/jblas-${JBLAS_VERSION}.jar .
18
17
19
- CMD java -jar jblas-${JBLAS_VERSION}.jar
18
+ RUN java -jar jblas-${JBLAS_VERSION}.jar
You can’t perform that action at this time.
0 commit comments