-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
16 additions
and
55 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
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
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 |
---|---|---|
|
@@ -2,11 +2,6 @@ FROM ubuntu:22.04 | |
|
||
LABEL maintainer="David Lung ([email protected]); Padraig Gleeson ([email protected])" | ||
|
||
ARG INTEL_SDK_VERSION=2017_7.0.0.2511_x64 | ||
|
||
#COPY ./silent-intel-sdk.cfg /tmp/silent-intel-sdk.cfg | ||
|
||
|
||
ARG USR=ow | ||
ENV USER=$USR | ||
|
||
|
@@ -23,12 +18,8 @@ RUN mkdir -p /etc/sudoers.d && \ | |
chmod 0440 /etc/sudoers.d/$USER && \ | ||
chown ${uid}:${gid} -R /home/$USER | ||
|
||
|
||
ENV DEBIAN_FRONTEND noninteractive # TODO: change | ||
|
||
#RUN useradd -ms /bin/bash $USER | ||
|
||
|
||
################################################################################ | ||
######## Update/install essential libraries | ||
|
||
|
@@ -46,7 +37,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends apt-utils \ | |
libxft-dev python3-matplotlib unzip ffmpeg xvfb tmux | ||
|
||
#RUN sudo pip install --upgrade pip | ||
#RUN sudo apt-get install nvidia-opencl-dev | ||
|
||
RUN sudo usermod -a -G video $USER | ||
|
||
|
@@ -82,11 +72,7 @@ RUN owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/ | |
################################################################################ | ||
######## Install Sibernetic for the worm body model | ||
|
||
# RUN git clone https://github.com/openworm/sibernetic.git && \ | ||
# cd sibernetic && \ | ||
# git checkout ow-0.9.3 # fixed to a specific branch | ||
|
||
RUN git clone https://github.com/pgleeson/sibernetic.git && \ | ||
RUN git clone https://github.com/openworm/sibernetic.git && \ | ||
cd sibernetic && \ | ||
git checkout ow-0.9.4 # fixed to a specific branch | ||
|
||
|
@@ -100,27 +86,8 @@ ENV PYTHONPATH=$PYTHONPATH:$HOME/c302:$SIBERNETIC_HOME | |
|
||
|
||
################################################################################ | ||
######## Install Intel OpenCL libraries needed for Sibernetic | ||
|
||
# Legacy install of Intel's OpenCL Drivers: | ||
# RUN mkdir intel-opencl-tmp && \ | ||
# cd intel-opencl-tmp && \ | ||
# mkdir intel-opencl && \ | ||
# wget https://github.com/openworm/OpenWorm/raw/dev_inte/SRB5.0_linux64.zip && \ | ||
# unzip SRB5.0_linux64.zip && \ | ||
# tar -C intel-opencl -Jxf intel-opencl-r5.0-63503.x86_64.tar.xz && \ | ||
# tar -C intel-opencl -Jxf intel-opencl-devel-r5.0-63503.x86_64.tar.xz && \ | ||
# tar -C intel-opencl -Jxf intel-opencl-cpu-r5.0-63503.x86_64.tar.xz && \ | ||
# sudo cp -R intel-opencl/* / && \ | ||
# sudo ldconfig && \ | ||
# cd .. && \ | ||
# sudo rm -r intel-opencl-tmp | ||
|
||
# RUN sudo cp -R /opt/intel/opencl/include/CL /usr/include/ && \ | ||
# sudo apt install -y ocl-icd-opencl-dev vim | ||
# #sudo ln -s /opt/intel/opencl/libOpenCL.so.1 /usr/lib/libOpenCL.so | ||
|
||
# Install AMD's OpenCL Drivers (AMD-APP-SDK 3.0): | ||
######## Install AMD's OpenCL Drivers (AMD-APP-SDK 3.0) | ||
|
||
RUN wget https://master.dl.sourceforge.net/project/nicehashsgminerv5viptools/APP%20SDK%20A%20Complete%20Development%20Platform/AMD%20APP%20SDK%203.0%20for%2064-bit%20Linux/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 | ||
RUN tar -xf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 | ||
RUN printf 'Y\n\n' | sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh | ||
|
@@ -140,7 +107,6 @@ RUN clinfo | |
######## Build Sibernetic | ||
|
||
RUN cd sibernetic && \ | ||
sed -i -e "s/n2.7/n3.10/g" makefile && \ | ||
make clean && make all && ldd ./Release/Sibernetic # Use python 3 libs | ||
|
||
|
||
|
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