-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release separation for AVX2 and SSSE3 builds
Pavel Kraynyukhov
committed
Jul 16, 2018
1 parent
d2d0c3b
commit c202894
Showing
11 changed files
with
1,143 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
docker build -t lapps:build.ssse3 -f dockerfiles/Dockerfile.ssse3 --force-rm . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
FROM ubuntu:xenial | ||
|
||
LABEL "co.new-web" "new WEB() LLP" version 1.0 maintainer "pk@new-web.co" description "LAppS build environment" | ||
|
||
RUN apt-get update \ | ||
&& apt-get dist-upgrade -y | ||
|
||
RUN apt-get install -y apt-utils | ||
|
||
RUN apt-get install -y vim | ||
|
||
RUN apt-get install -y curl | ||
|
||
RUN apt-get install -y wget | ||
|
||
RUN apt-get install -y git | ||
|
||
RUN apt-get install -y g++-multilib | ||
|
||
RUN apt-get install -y make | ||
|
||
RUN apt-get install -y autotools-dev | ||
|
||
RUN apt-get install -y libcrypto++-dev | ||
|
||
RUN apt-get install -y libpam0g-dev | ||
|
||
RUN apt-get install -y libbz2-dev | ||
|
||
ENV WORKSPACE /root/workspace | ||
|
||
RUN mkdir ${WORKSPACE} | ||
|
||
ADD http://luajit.org/download/LuaJIT-2.0.5.tar.gz ${WORKSPACE} | ||
|
||
WORKDIR ${WORKSPACE} | ||
|
||
RUN tar xzvf LuaJIT-2.0.5.tar.gz | ||
|
||
WORKDIR ${WORKSPACE}/LuaJIT-2.0.5 | ||
|
||
RUN env CFLAGS="-pipe -Wall -pthread -O2 -fPIC -march=native -mtune=generic -mfpmath=sse -mssse3 -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fno-omit-frame-pointer" make all install | ||
|
||
WORKDIR ${WORKSPACE} | ||
|
||
ADD https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.7.4.tar.gz ${WORKSPACE} | ||
|
||
RUN tar xzvf libressl-2.7.4.tar.gz | ||
|
||
WORKDIR ${WORKSPACE}/libressl-2.7.4 | ||
|
||
RUN env CFLAGS="-pipe -Wall -pthread -O2 -fPIC -march=native -mtune=generic -mfpmath=sse -mssse3 -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fno-omit-frame-pointer" ./configure --prefix=${WORKSPACE}/libressl | ||
|
||
RUN make all install | ||
|
||
WORKDIR ${WORKSPACE} | ||
|
||
RUN git clone https://github.com/ITpC/ITCLib.git | ||
|
||
RUN git clone https://github.com/ITpC/utils.git | ||
|
||
RUN git clone https://github.com/ITpC/ITCFramework.git | ||
|
||
RUN git clone https://github.com/ITpC/LAppS.git | ||
|
||
RUN git clone https://github.com/ITpC/lar.git | ||
|
||
WORKDIR ${WORKSPACE}/LAppS | ||
|
||
RUN make clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
export VERSION=$(cat VERSION) | ||
if [ "${VERSION}x" != "x" ] | ||
then | ||
|
||
(cd ../ITCLib && git pull) && (cd ../ITCFramework && git pull) && \ | ||
(cd ../utils && git pull) && git pull && make CONF=Release.GENERIC install-examples clone-luajit clone-libressl && \ | ||
make build-deb && mv /opt/distrib/lapps-${VERSION}-amd64.deb /opt/lapps/packages/ | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# | ||
# Generated Makefile - do not edit! | ||
# | ||
# Edit the Makefile in the project folder instead (../Makefile). Each target | ||
# has a -pre and a -post target defined where you can add customized code. | ||
# | ||
# This makefile implements configuration specific macros and targets. | ||
|
||
|
||
# Environment | ||
MKDIR=mkdir | ||
CP=cp | ||
GREP=grep | ||
NM=nm | ||
CCADMIN=CCadmin | ||
RANLIB=ranlib | ||
CC=gcc | ||
CCC=g++ | ||
CXX=g++ | ||
FC=gfortran | ||
AS=as | ||
|
||
# Macros | ||
CND_PLATFORM=GNU-Linux | ||
CND_DLIB_EXT=so | ||
CND_CONF=Release.AVX2 | ||
CND_DISTDIR=dist | ||
CND_BUILDDIR=build | ||
|
||
# Include project Makefile | ||
include Makefile | ||
|
||
# Object Directory | ||
OBJECTDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM} | ||
|
||
# Object Files | ||
OBJECTFILES= \ | ||
${OBJECTDIR}/src/getLog.o \ | ||
${OBJECTDIR}/src/main.o | ||
|
||
|
||
# C Compiler Flags | ||
CFLAGS= | ||
|
||
# CC Compiler Flags | ||
CCFLAGS=-pipe -std=c++17 -Wall -pthread -O2 -fPIC -march=native -mtune=generic -mfpmath=sse -mavx2 -msse2avx -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fomit-frame-pointer | ||
CXXFLAGS=-pipe -std=c++17 -Wall -pthread -O2 -fPIC -march=native -mtune=generic -mfpmath=sse -mavx2 -msse2avx -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fomit-frame-pointer | ||
|
||
# Fortran Compiler Flags | ||
FFLAGS= | ||
|
||
# Assembler Flags | ||
ASFLAGS= | ||
|
||
# Link Libraries and Options | ||
LDLIBSOPTIONS=-L/usr/local/lib -L../libressl/lib ../ITCFramework/dist/Debug/GNU-Linux/libitcframework.a ../ITCLib/dist/Debug/GNU-Linux/libitclib.a ../utils/dist/Debug/GNU-Linux/libutils.a | ||
|
||
# Build Targets | ||
.build-conf: ${BUILD_SUBPROJECTS} | ||
"${MAKE}" -f nbproject/Makefile-${CND_CONF}.mk ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ../ITCFramework/dist/Debug/GNU-Linux/libitcframework.a | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ../ITCLib/dist/Debug/GNU-Linux/libitclib.a | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ../utils/dist/Debug/GNU-Linux/libutils.a | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ${OBJECTFILES} | ||
${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM} | ||
g++ -pipe -Wall -pthread -O2 -mtune=native -march=native -fPIC -mfpmath=sse -mssse3 -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fomit-frame-pointer -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps ${OBJECTFILES} ${LDLIBSOPTIONS} -lcryptopp -ltls -lcrypto -lluajit-5.1 -lbz2 -lstdc++fs -lpam | ||
|
||
${OBJECTDIR}/src/getLog.o: src/getLog.cpp nbproject/Makefile-${CND_CONF}.mk | ||
${MKDIR} -p ${OBJECTDIR}/src | ||
${RM} "$@.d" | ||
$(COMPILE.cc) -g -DAPP_NAME=\"LAppS\" -DLAPPS_TLS_ENABLE -DLOG_FILE=\"lapps.log\" -DLOG_INFO -DMAX_BUFF_SIZE=512 -DSTATS_ENABLE -DTSAFE_LOG=1 -I../libressl/include -I../ITCFramework/include -I../ITCLib/include -I../utils/include -I../lar -Iinclude -I/usr/include/luajit-2.0 -Iinclude/modules -I/usr/local/include -I/usr/local/include/luajit-2.0 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/getLog.o src/getLog.cpp | ||
|
||
${OBJECTDIR}/src/main.o: src/main.cpp nbproject/Makefile-${CND_CONF}.mk | ||
${MKDIR} -p ${OBJECTDIR}/src | ||
${RM} "$@.d" | ||
$(COMPILE.cc) -g -DAPP_NAME=\"LAppS\" -DLAPPS_TLS_ENABLE -DLOG_FILE=\"lapps.log\" -DLOG_INFO -DMAX_BUFF_SIZE=512 -DSTATS_ENABLE -DTSAFE_LOG=1 -I../libressl/include -I../ITCFramework/include -I../ITCLib/include -I../utils/include -I../lar -Iinclude -I/usr/include/luajit-2.0 -Iinclude/modules -I/usr/local/include -I/usr/local/include/luajit-2.0 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/main.o src/main.cpp | ||
|
||
# Subprojects | ||
.build-subprojects: | ||
cd ../ITCFramework && ${MAKE} -f Makefile CONF=Debug | ||
cd ../ITCLib && ${MAKE} -f Makefile CONF=Debug | ||
cd ../utils && ${MAKE} -f utils-Makefile.mk CONF=Debug | ||
|
||
# Clean Targets | ||
.clean-conf: ${CLEAN_SUBPROJECTS} | ||
${RM} -r ${CND_BUILDDIR}/${CND_CONF} | ||
|
||
# Subprojects | ||
.clean-subprojects: | ||
cd ../ITCFramework && ${MAKE} -f Makefile CONF=Debug clean | ||
cd ../ITCLib && ${MAKE} -f Makefile CONF=Debug clean | ||
cd ../utils && ${MAKE} -f utils-Makefile.mk CONF=Debug clean | ||
|
||
# Enable dependency checking | ||
.dep.inc: .depcheck-impl | ||
|
||
include .dep.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# | ||
# Generated Makefile - do not edit! | ||
# | ||
# Edit the Makefile in the project folder instead (../Makefile). Each target | ||
# has a -pre and a -post target defined where you can add customized code. | ||
# | ||
# This makefile implements configuration specific macros and targets. | ||
|
||
|
||
# Environment | ||
MKDIR=mkdir | ||
CP=cp | ||
GREP=grep | ||
NM=nm | ||
CCADMIN=CCadmin | ||
RANLIB=ranlib | ||
CC=gcc | ||
CCC=g++ | ||
CXX=g++ | ||
FC=gfortran | ||
AS=as | ||
|
||
# Macros | ||
CND_PLATFORM=GNU-Linux | ||
CND_DLIB_EXT=so | ||
CND_CONF=Release.GENERIC | ||
CND_DISTDIR=dist | ||
CND_BUILDDIR=build | ||
|
||
# Include project Makefile | ||
include Makefile | ||
|
||
# Object Directory | ||
OBJECTDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM} | ||
|
||
# Object Files | ||
OBJECTFILES= \ | ||
${OBJECTDIR}/src/getLog.o \ | ||
${OBJECTDIR}/src/main.o | ||
|
||
|
||
# C Compiler Flags | ||
CFLAGS= | ||
|
||
# CC Compiler Flags | ||
CCFLAGS=-pipe -std=c++17 -Wall -pthread -O2 -fPIC -march=native -mtune=generic -mfpmath=sse -mssse3 -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fomit-frame-pointer | ||
CXXFLAGS=-pipe -std=c++17 -Wall -pthread -O2 -fPIC -march=native -mtune=generic -mfpmath=sse -mssse3 -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fomit-frame-pointer | ||
|
||
# Fortran Compiler Flags | ||
FFLAGS= | ||
|
||
# Assembler Flags | ||
ASFLAGS= | ||
|
||
# Link Libraries and Options | ||
LDLIBSOPTIONS=-L/usr/local/lib -L../libressl/lib ../ITCFramework/dist/Debug/GNU-Linux/libitcframework.a ../ITCLib/dist/Debug/GNU-Linux/libitclib.a ../utils/dist/Debug/GNU-Linux/libutils.a | ||
|
||
# Build Targets | ||
.build-conf: ${BUILD_SUBPROJECTS} | ||
"${MAKE}" -f nbproject/Makefile-${CND_CONF}.mk ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ../ITCFramework/dist/Debug/GNU-Linux/libitcframework.a | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ../ITCLib/dist/Debug/GNU-Linux/libitclib.a | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ../utils/dist/Debug/GNU-Linux/libutils.a | ||
|
||
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps: ${OBJECTFILES} | ||
${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM} | ||
g++ -pipe -Wall -pthread -O2 -mtune=native -march=native -fPIC -mfpmath=sse -mssse3 -ftree-vectorize -funroll-loops -fstack-check -fstack-protector-strong -fomit-frame-pointer -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/lapps ${OBJECTFILES} ${LDLIBSOPTIONS} -lcryptopp -ltls -lcrypto -lluajit-5.1 -lbz2 -lstdc++fs -lpam | ||
|
||
${OBJECTDIR}/src/getLog.o: src/getLog.cpp nbproject/Makefile-${CND_CONF}.mk | ||
${MKDIR} -p ${OBJECTDIR}/src | ||
${RM} "$@.d" | ||
$(COMPILE.cc) -g -DAPP_NAME=\"LAppS\" -DLAPPS_TLS_ENABLE -DLOG_FILE=\"lapps.log\" -DLOG_INFO -DMAX_BUFF_SIZE=512 -DSTATS_ENABLE -DTSAFE_LOG=1 -I../libressl/include -I../ITCFramework/include -I../ITCLib/include -I../utils/include -I../lar -Iinclude -I/usr/include/luajit-2.0 -Iinclude/modules -I/usr/local/include -I/usr/local/include/luajit-2.0 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/getLog.o src/getLog.cpp | ||
|
||
${OBJECTDIR}/src/main.o: src/main.cpp nbproject/Makefile-${CND_CONF}.mk | ||
${MKDIR} -p ${OBJECTDIR}/src | ||
${RM} "$@.d" | ||
$(COMPILE.cc) -g -DAPP_NAME=\"LAppS\" -DLAPPS_TLS_ENABLE -DLOG_FILE=\"lapps.log\" -DLOG_INFO -DMAX_BUFF_SIZE=512 -DSTATS_ENABLE -DTSAFE_LOG=1 -I../libressl/include -I../ITCFramework/include -I../ITCLib/include -I../utils/include -I../lar -Iinclude -I/usr/include/luajit-2.0 -Iinclude/modules -I/usr/local/include -I/usr/local/include/luajit-2.0 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/main.o src/main.cpp | ||
|
||
# Subprojects | ||
.build-subprojects: | ||
cd ../ITCFramework && ${MAKE} -f Makefile CONF=Debug | ||
cd ../ITCLib && ${MAKE} -f Makefile CONF=Debug | ||
cd ../utils && ${MAKE} -f utils-Makefile.mk CONF=Debug | ||
|
||
# Clean Targets | ||
.clean-conf: ${CLEAN_SUBPROJECTS} | ||
${RM} -r ${CND_BUILDDIR}/${CND_CONF} | ||
|
||
# Subprojects | ||
.clean-subprojects: | ||
cd ../ITCFramework && ${MAKE} -f Makefile CONF=Debug clean | ||
cd ../ITCLib && ${MAKE} -f Makefile CONF=Debug clean | ||
cd ../utils && ${MAKE} -f utils-Makefile.mk CONF=Debug clean | ||
|
||
# Enable dependency checking | ||
.dep.inc: .depcheck-impl | ||
|
||
include .dep.inc |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.