Commit 6d0d0fad authored by Milan Jaros's avatar Milan Jaros
Browse files

add fiona scripts

parent b321ed7b
diff a/scripts/run_vrclient_gcc.sh b/scripts/run_vrclient_gcc.sh
--- a/scripts/run_vrclient_gcc.sh
+++ b/scripts/run_vrclient_gcc.sh
@@ -25,7 +25,7 @@ export LD_LIBRARY_PATH=/usr/local/cuda/l
export CLIENT_FILE_KERNEL_GLOBAL=$ROOT_DIR/src/blender-vr-interactive/client/data/box_gpu.kg
#export DEBUG_CUBIN=$ROOT_DIR/build/vrclient_gcc/cyclesphi_cuda/kernel_sm_30.cubin
#export DEBUG_SAMPLES=1
-export CUDA_VISIBLE_DEVICES=0,1 #,2,3,4,5,6,7,8,9,10,11,12,13,14,15
+export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-0,1} #,2,3,4,5,6,7,8,9,10,11,12,13,14,15
#export CUDA_VISIBLE_DEVICES=0
#export STEREO=ON
#export CLIENT_TILES="0;10;109;10;209;10;309;10;403;10;491;10;610;10;714;10;840;10;991;10;1178;10;1376;10;1580;10;1793;10;1900;10;2000;10"
@@ -38,7 +38,7 @@ export CLIENT_TILES="0;100"
#export SOCKET_SERVER_PORT_CAM=5008
#export SOCKET_SERVER_NAME_DATA=localhost
-export SOCKET_SERVER_NAME_DATA=158.196.27.123
+export SOCKET_SERVER_NAME_DATA=${DATA_SERVER:-158.196.27.123}
${ROOT_DIR}/install/vrclient_gcc/bin/blender_client
#chmod +x ${HOME}/temp/blender_client
diffbuild_blender28_gcc_mpi_sing.sh scripts-cuda/build_blender28_gcc_mpi_sing.sh
--- a/scripts/build_blender28_gcc_mpi_sing.sh
+++ b/scripts/build_blender28_gcc_mpi_sing.sh
@@ -156,6 +156,7 @@ make_d="${make_d} -DCMAKE_BUILD_TYPE=Rel
#make_d="${make_d} -DOPENGL_GLX_INCLUDE_DIR:PATH=${lib_dir}/gl/include"
#make_d="${make_d} -DOPENGL_gl_LIBRARY:FILEPATH=${lib_dir}/gl/lib/libGL.so"
#make_d="${make_d} -DOPENGL_glu_LIBRARY:FILEPATH=${lib_dir}/gl/lib/libGLU.so"
+make_d="${make_d} -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs"
cmake ${make_d}
#make clean
diffbuild_vrclient_gcc.sh scripts-cuda/build_vrclient_gcc.sh
--- a/scripts/build_vrclient_gcc.sh
+++ b/scripts/build_vrclient_gcc.sh
@@ -60,6 +60,7 @@ make_d="${make_d} -DWITH_BMP_OUTPUT=OFF"
make_d="${make_d} -DCMAKE_BUILD_TYPE=Release"
make_d="${make_d} -DCMAKE_INSTALL_PREFIX=${output}"
+make_d="${make_d} -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs"
cmake ${make_d}
#make clean
diff a/scripts/build_vrclient_gcc.sh b/scripts/build_vrclient_gcc.sh
--- a/scripts/build_vrclient_gcc.sh
+++ b/scripts/build_vrclient_gcc.sh
@@ -42,7 +42,7 @@ make_d="${make_d} -DWITH_CLIENT_RENDEREN
make_d="${make_d} -DWITH_CLIENT_VRGSTREAM=OFF"
#make_d="${make_d} -DCUDA_BINARIES_ARCH:STRING=sm_70"
-make_d="${make_d} -DCUDA_BINARIES_ARCH:STRING=sm_52"
+make_d="${make_d} -DCUDA_BINARIES_ARCH:STRING=sm_%cuda_sm%"
make_d="${make_d} -DCUDA_CUSTOM_LIBRARIES=$CUDA_ROOT/lib64/stubs/libcuda.so;$CUDA_ROOT/lib64/libcudart.so"
diff a/scripts/run_vrclient_gcc.sh b/scripts/run_vrclient_gcc.sh
--- a/scripts/run_vrclient_gcc.sh
+++ b/scripts/run_vrclient_gcc.sh
@@ -17,7 +17,7 @@ export LD_LIBRARY_PATH=${src}/ultragrid/
#export CLIENT_FILE_KERNEL_GLOBAL=/lscratch/unimem/museum/museum_11gb.kg
#export DEBUG_SAMPLES=5
#export KERNEL_CUDA_CUBIN=${ROOT_DIR}/build/vrclient_gcc/cycles_cuda/kernel_sm_70.cubin
-export KERNEL_CUDA_CUBIN=${ROOT_DIR}/build/vrclient_gcc/cycles_cuda/kernel_sm_52.cubin
+export KERNEL_CUDA_CUBIN=${ROOT_DIR}/build/vrclient_gcc/cycles_cuda/kernel_sm_%cuda_sm%.cubin
#export SET_BOUNCES='0;0;0;0;0;0;0;0'
FROM nvidia/cuda:11.1-devel-ubuntu18.04
# for who-knows-why fiona is not providing dns services to container, or the image has fckd up config
#RUN cat /etc/resolv.conf ; echo "nameserver 195.113.144.194" > /etc/resolv.conf
ARG cuda_sm=75
ENV TZ=Europe/Prague
RUN ln -s /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && env DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo git vim wget xfce4 firefox xfce4-terminal mesa-utils build-essential llvm \
libglu1-mesa-dev freeglut3-dev mesa-common-dev \
iproute2 tmux bind9utils \
cmake make autoconf automake autotools-dev libmagickwand-dev libjpeg-dev freeglut3-dev libglew1.6-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-dev libxxf86vm1 libx11-6 libxdamage1 libasound2-dev zip libavcodec-dev liblivemedia-dev libopencv-dev libssl-dev libvdpau-dev libva-dev libglib2.0-dev libcurl4-openssl-dev clang
RUN cd /tmp && wget https://sourceforge.net/projects/turbovnc/files/2.2.5/turbovnc_2.2.5_amd64.deb && dpkg -i turbovnc_2.2.5_amd64.deb
RUN cd /tmp && wget https://sourceforge.net/projects/virtualgl/files/2.6.4/virtualgl_2.6.4_amd64.deb && dpkg -i virtualgl_2.6.4_amd64.deb
RUN mkdir /apps_docker && cd /apps_docker && mkdir src install build data scripts
RUN cd /apps_docker/src && git clone https://git.blender.org/blender.git blender_orig \
&& cd blender_orig && git checkout v2.83.8 \
&& find ./ -iname install_deps.sh -print -exec sh -c {} \;
#./src/blender_orig/build_files/build_environment/install_deps.sh
ADD blender-vr-interactive.tar.gz /apps_docker/src/
ADD scripts_2020-10-31.tar.gz /apps_docker/scripts/
ADD *.patch /apps_docker/
RUN sed -i s/%cuda_sm%/${cuda_sm}/g /apps_docker/*.patch
RUN cd /apps_docker ; for patch in *.patch ; do patch -p1 <$patch ; done ; rm *.patch
#ADD data.tar.gz /apps_docker/data/
RUN cd /apps_docker/src/blender-vr-interactive && git checkout stereo
# && git pull
RUN cd /apps_docker/src/ && git clone -b vr https://github.com/CESNET/UltraGrid.git ultragrid \
&& cd ultragrid && (./autogen.sh || true) \
&& cd ../.. \
&& ./scripts/ultragrid_compile.sh
RUN cd /apps_docker/ && ./scripts/build_vrclient_gcc.sh
RUN cd /apps_docker/ && ./scripts/build_blender28_gcc_mpi_sing.sh
ENV CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-0,1,2,3,4,5,6,7,8}
ENV DATA_SERVER=localhost
WORKDIR /apps_docker/
ENTRYPOINT /apps_docker/scripts/run_vrclient_gcc.sh
#!/bin/bash
#ml CMake
#ml Mesa
#ml tbb
#ml intel/2017c
#source /apps/all/icc/2017.7.259-GCC-6.3.0-2.27/bin/iccvars.sh intel64
#source /apps/all/impi/2017.4.239-iccifort-2017.7.259-GCC-6.3.0-2.27/intel64/bin/mpivars.sh
ROOT_DIR=${PWD}
lib_dir=${ROOT_DIR}/install
output=${ROOT_DIR}/install/blender28_gcc
src=${ROOT_DIR}/src
#boost_1_60_0
#ilmbase-2.3.0
#openexr-2.3.0
#tiff-4.0.6
#gdcm-2.6.2
#oiio
#Python-3.4.4
#zlib-1.2.8
#export CC='mpigcc -cc=gcc'
#export CXX='mpigxx -cxx=g++'
export CC='gcc'
export CXX='g++'
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ROOT_DIR}/lib
#export LD_LIBRARY_PATH=$HOME/.local/easybuild/software/CUDA/10.2.89/lib64/stubs:$HOME/.local/easybuild/software/CUDA/10.2.89/lib64:$LD_LIBRARY_PATH
#export PATH=$HOME/.local/easybuild/software/CUDA/10.2.89/bin:$PATH
#export CC=mpicc
#export CXX=mpiCC
#-----------blender--------------
mkdir ${ROOT_DIR}/build/blender28_gcc
cd ${ROOT_DIR}/build/blender28_gcc
#make_d="${make_d} -DPYTHON_ROOT_DIR=${lib_dir}/python-3.6.2"
make_d="-C${src}/blender-vr-interactive/build_files/cmake/config/blender_release.cmake ${src}/blender-vr-interactive"
#make_d="${make_d} -DPYTHON_ROOT_DIR=${lib_dir}/python-3.6.2"
#make_d="${make_d} -DPYTHON_VERSION=3.6"
#make_d="${make_d} -DPYTHON_LIBPATH=${lib_dir}/python-3.7.0/lib"
#make_d="${make_d} -DPYTHON_INCLUDE_DIR=${lib_dir}/python-3.7.0/include/python3.7m"
#make_d="${make_d} -DPYTHON_INCLUDE_CONFIG_DIR=${lib_dir}/python-3.7.0/include/python3.7m"
#make_d="${make_d} -DWITH_OPENIMAGEIO=ON"
#make_d="${make_d} -DWITH_CYCLES=ON"
#make_d="${make_d} -DOPENEXR_ROOT_DIR=${lib_dir}/openexr-2.3.0"
#make_d="${make_d} -DOPENEXR_ILMIMF_LIBRARIES=${lib_dir}/openexr-2.3.0/lib/libIlmImf-2_3.so"
#make_d="${make_d} -DOPENEXR_ILMTHREAD_LIBRARY=${lib_dir}/openexr-2.3.0/lib/libIlmThread-2_3.so"
#make_d="${make_d} -DOPENEXR_IMATH_LIBRARY=${lib_dir}/openexr-2.3.0/lib/libImath-2_3.so"
#make_d="${make_d} -DOPENEXR_ILMIMF_LIBRARY=${lib_dir}/openexr-2.3.0/lib/libIlmImf-2_3.so"
#make_d="${make_d} -DOPENEXR_HALF_LIBRARY=${lib_dir}/openexr-2.3.0/lib/libHalf-2_3.so"
#make_d="${make_d} -DOPENEXR_IEX_LIBRARY=${lib_dir}/openexr-2.3.0/lib/libIex-2_3.so"
#make_d="${make_d} -DBOOST_ROOT=${lib_dir}/boost-1.68.0"
#make_d="${make_d} -DPNG_LIBRARY_RELEASE=${lib_dir}/libpng-1.6.35/lib/libpng.so"
#make_d="${make_d} -DPNG_PNG_INCLUDE_DIR=${lib_dir}/libpng-1.6.35/include"
#make_d="${make_d} -DOPENIMAGEIO_ROOT_DIR=${lib_dir}/oiio-1.8.13"
#make_d="${make_d} -DOPENIMAGEIO_INCLUDE_DIR=${lib_dir}/oiio-1.8.13/include"
#make_d="${make_d} -DWITH_SYSTEM_GLEW=OFF"
#make_d="${make_d} -DZLIB_INCLUDE_DIR=${lib_dir}/zlib-1.2.8/include"
#make_d="${make_d} -DZLIB_LIBRARY=${lib_dir}/zlib-1.2.8/lib/libz.so"
#make_d="${make_d} -DCMAKE_CXX_FLAGS='-wd47,177,858,1875,2621,1011,780,1292,597,167'"
#make_d="${make_d} -DCMAKE_CXX_FLAGS="
#make_d="${make_d} -DCMAKE_C_FLAGS="
#make_d="${make_d} -DCMAKE_EXE_LINKER_FLAGS='-lrt'"
#make_d="${make_d} -DJPEG_INCLUDE_DIR:PATH=${lib_dir}/libjpeg-turbo-1.5.2/include"
#make_d="${make_d} -DJPEG_LIBRARY:FILEPATH=${lib_dir}/libjpeg-turbo-1.5.2/lib/libjpeg.a"
#make_d="${make_d} -DTIFF_INCLUDE_DIR:PATH=${lib_dir}/tiff-4.0.6/include"
#make_d="${make_d} -DTIFF_LIBRARY:FILEPATH=${lib_dir}/tiff-4.0.6/lib/libtiff.a"
#make_d="${make_d} -DFREETYPE_INCLUDE_DIR_freetype2=${lib_dir}/freetype-2.6.3/include"
#make_d="${make_d} -DFREETYPE_INCLUDE_DIR_ft2build=${lib_dir}/freetype-2.6.3/include/freetype2"
#make_d="${make_d} -DFREETYPE_LIBRARY=${lib_dir}/freetype-2.6.3/lib/libfreetype.so"
#make_d="${make_d} -DWITH_OPENMP=ON"
#make_d="${make_d} -DWITH_CYCLES_EMBREE=OFF"
#make_d="${make_d} -DWITH_EMBREE=OFF"
#make_d="${make_d} -DWITH_MPI=ON"
make_d="${make_d} -DCYCLES_CUDA_BINARIES_ARCH:STRING=" #sm_70
#make_d="${make_d} -DOPTIX_INCLUDE_DIR:PATH=/home/milanjaros/projects/optix/NVIDIA-OptiX-SDK-7.0.0-linux64/include"
make_d="${make_d} -DOPTIX_INCLUDE_DIR:PATH="
make_d="${make_d} -DWITH_CYCLES_CLIENT=ON"
make_d="${make_d} -DWITH_CLIENT_FILE=ON"
#make_d="${make_d} -DWITH_CLIENT_RAAS=ON"
#make_d="${make_d} -DWITH_CLIENT_MPI_SOCKET=OFF"
make_d="${make_d} -DWITH_CLIENT_CUDA=OM"
#make_d="${make_d} -DWITH_MPI_SOCKET=OFF"
#make_d="${make_d} -DWITH_CLIENT_MPI_SOCKET=OFF"
#make_d="${make_d} -DWITH_OPENIMAGEDENOISE=OFF"
#make_d="${make_d} -DWITH_CPU_SSE=OFF"
#make_d="${make_d} -DWITH_HEADLESS:BOOL=ON"
#make_d="${make_d} -DWITH_IT4I_MIC_OFFLOAD=ON"
#make_d="${make_d} -DWITH_IT4I_MPI:BOOL=ON"
#make_d="${make_d} -DWITH_CYCLES_DEVICE_OPENMP_OFFLOAD=ON"
#make_d="${make_d} -DWITH_GAMEENGINE=OFF"
#make_d="${make_d} -DWITH_AUDASPACE=OFF"
#make_d="${make_d} -DWITH_ALEMBIC=ON"
#make_d="${make_d} -DALEMBIC_ROOT_DIR=${lib_dir}/alembic-1.7.8"
#make_d="${make_d} -DALEMBIC_LIBRARY=${lib_dir}/alembic-1.7.8/lib/libAlembic.a"
#make_d="${make_d} -DWITH_FFTW=FALSE"
#make_d="${make_d} -DWITH_FFTW3=ON"
#make_d="${make_d} -DWITH_ALEMBIC=ON"
#make_d="${make_d} -DALEMBIC_ROOT_DIR=${lib_dir}/alembic-1.7.8"
#make_d="${make_d} -DALEMBIC_LIBRARY=${lib_dir}/alembic-1.7.8/lib/libAlembic.a"
#make_d="${make_d} -DWITH_OPENCOLORIO=ON"
#make_d="${make_d} -DOPENCOLORIO_ROOT_DIR=${lib_dir}/ocio-1.1.0"
#make_d="${make_d} -D_opencolorio_LIBRARIES=${lib_dir}/ocio-1.1.0/lib/static/libOpenColorIO.a"
#make_d="${make_d} -DWITH_OPENVDB=ON"
#make_d="${make_d} -DWITH_OPENVDB_BLOSC=ON"
#make_d="${make_d} -DWITH_OPENVDB_3_ABI_COMPATIBLE=OFF"
#make_d="${make_d} -DWITH_OPENCOLORIO=ON"
#make_d="${make_d} -DOPENCOLORIO_ROOT_DIR=${lib_dir}/ocio-1.1.0"
#make_d="${make_d} -D_opencolorio_LIBRARIES=${lib_dir}/ocio-1.1.0/lib/static/libOpenColorIO.a"
#make_d="${make_d} -DWITH_OPENVDB=ON"
#make_d="${make_d} -DWITH_OPENVDB_BLOSC=ON"
#make_d="${make_d} -DWITH_OPENVDB_3_ABI_COMPATIBLE=ON"
#make_d="${make_d} -DOPENVDB_ROOT_DIR=${lib_dir}/openvdb"
#make_d="${make_d} -DOPENVDB_INCLUDE_DIR=${lib_dir}/openvdb/include"
#make_d="${make_d} -DTBB_LIBRARY=/apps/all/tbb/2017.6.196/tbb/lib/libtbb.so"
#make_d="${make_d} -DTBB_ROOT_DIR=/apps/all/tbb/2017.6.196/tbb"
#make_d="${make_d} -DBLOSC_LIBRARY=${lib_dir}/blosc/lib/libblosc.so"
#make_d="${make_d} -DBLOSC_ROOT_DIR=${lib_dir}/blosc"
#make_d="${make_d} -DWITH_OPENAL=OFF"
make_d="${make_d} -DWITH_DOC_MANPAGE=OFF"
make_d="${make_d} -DWITH_SDL=OFF"
#make_d="${make_d} -DX11_Xi_LIB=/usr/lib64/libXi.so.6"
#make_d="${make_d} -DOPTIX_INCLUDE_DIR="
#make_d="${make_d} -DWITH_INTERNATIONAL=OFF"
make_d="${make_d} -DCMAKE_INSTALL_PREFIX=${output}"
#make_d="${make_d} -DCMAKE_BUILD_TYPE=Release"
make_d="${make_d} -DCMAKE_BUILD_TYPE=Release"
#make_d="${make_d} -DOPENGL_INCLUDE_DIR:PATH=${lib_dir}/gl/include"
#make_d="${make_d} -DOPENGL_GLX_INCLUDE_DIR:PATH=${lib_dir}/gl/include"
#make_d="${make_d} -DOPENGL_gl_LIBRARY:FILEPATH=${lib_dir}/gl/lib/libGL.so"
#make_d="${make_d} -DOPENGL_glu_LIBRARY:FILEPATH=${lib_dir}/gl/lib/libGLU.so"
cmake ${make_d}
#make clean
make -j install
#!/bin/bash
#export MODULEPATH=${MODULEPATH}:$HOME/.local/easybuild/modules/all
#ml CMake/3.14.1
#ml CUDA/10.1.243
#ml GCC/6.3.0-2.27
ROOT_DIR=${PWD}
lib_dir=${ROOT_DIR}/install
output=${ROOT_DIR}/install/vrclient_gcc
src=${ROOT_DIR}/src
#export CC='gcc'
#export CXX='g++'
#export LD_LIBRARY_PATH=/home/milanjaros/projects/blender/install/gpujpeg/lib:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=/home/milanjaros/Downloads/nvidia/NVIDIA-Linux-x86_64-418.30:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export CUDA_ROOT=/usr/local/cuda
#-----------blender_client--------------
mkdir ${ROOT_DIR}/build/vrclient_gcc
cd ${ROOT_DIR}/build/vrclient_gcc
make_d="${src}/blender-vr-interactive/client"
make_d="${make_d} -DWITH_CLIENT_FILE=ON"
make_d="${make_d} -DWITH_CLIENT_ULTRAGRID=ON"
make_d="${make_d} -DWITH_CLIENT_ULTRAGRID_LIB=ON"
make_d="${make_d} -DWITH_CUDA_BUFFER_MANAGED=OFF"
#make_d="${make_d} -DWITH_CUDA_BUFFER_MANAGED=ON"
make_d="${make_d} -DULTRAGRID_INCLUDE_DIR=${src}/ultragrid/src"
make_d="${make_d} -DULTRAGRID_LIBRARIES=${src}/ultragrid/lib/libug.so"
make_d="${make_d} -DWITH_CLIENT_CUDA=ON"
make_d="${make_d} -DWITH_CLIENT_CPU=OFF"
make_d="${make_d} -DWITH_CLIENT_RENDERENGINE=OFF"
make_d="${make_d} -DWITH_CLIENT_VRGSTREAM=OFF"
#make_d="${make_d} -DCUDA_BINARIES_ARCH:STRING=sm_70"
make_d="${make_d} -DCUDA_BINARIES_ARCH:STRING=sm_52"
make_d="${make_d} -DCUDA_CUSTOM_LIBRARIES=$CUDA_ROOT/lib64/stubs/libcuda.so;$CUDA_ROOT/lib64/libcudart.so"
make_d="${make_d} -DWITH_OPTIX_DENOISER=OFF"
#make_d="${make_d} -DOPTIX_INCLUDE_DIR=/home/milanjaros/projects/optix/NVIDIA-OptiX-SDK-7.0.0-linux64/include"
make_d="${make_d} -DWITH_CLIENT_FILE_MMAP=ON"
make_d="${make_d} -DWITH_CPU_IMAGE=ON"
make_d="${make_d} -DENABLE_INC_SAMPLES=ON"
make_d="${make_d} -DWITH_RGBA_FORMAT=ON" # "Enable rgba format, default is yuv420"
make_d="${make_d} -DWITH_YUV_OUTPUT=OFF" # "Enable yuv output - writing to yuv file"
make_d="${make_d} -DWITH_BMP_OUTPUT=OFF" # "Enable bmp output - writing to bmp file"
make_d="${make_d} -DCMAKE_BUILD_TYPE=Release"
make_d="${make_d} -DCMAKE_INSTALL_PREFIX=${output}"
cmake ${make_d}
#make clean
make -j install
#make
#!/bin/bash
#export MODULEPATH=${MODULEPATH}:$HOME/.local/easybuild/modules/all
#ml CMake/3.14.1
#ml CUDA/10.1.243
#ml GCC/6.3.0-2.27
ROOT_DIR=${PWD}
src=${ROOT_DIR}/src
export LD_LIBRARY_PATH=${src}/ultragrid/lib:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=/home/milanjaros/Downloads/nvidia/NVIDIA-Linux-x86_64-418.30:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
#export CLIENT_FILE_KERNEL_GLOBAL=~/temp/bmw_gpu.kg
# moanaC/moanaC_25gb.kg
#export CLIENT_FILE_KERNEL_GLOBAL=/lscratch/unimem/museum/museum_11gb.kg
#export DEBUG_SAMPLES=5
#export KERNEL_CUDA_CUBIN=${ROOT_DIR}/build/vrclient_gcc/cycles_cuda/kernel_sm_70.cubin
export KERNEL_CUDA_CUBIN=${ROOT_DIR}/build/vrclient_gcc/cycles_cuda/kernel_sm_52.cubin
#export SET_BOUNCES='0;0;0;0;0;0;0;0'
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH
export CLIENT_FILE_KERNEL_GLOBAL=$ROOT_DIR/src/blender-vr-interactive/client/data/box_gpu.kg
#export DEBUG_CUBIN=$ROOT_DIR/build/vrclient_gcc/cyclesphi_cuda/kernel_sm_30.cubin
#export DEBUG_SAMPLES=1
export CUDA_VISIBLE_DEVICES=0,1 #,2,3,4,5,6,7,8,9,10,11,12,13,14,15
#export CUDA_VISIBLE_DEVICES=0
#export STEREO=ON
#export CLIENT_TILES="0;10;109;10;209;10;309;10;403;10;491;10;610;10;714;10;840;10;991;10;1178;10;1376;10;1580;10;1793;10;1900;10;2000;10"
export CLIENT_TILES="0;100"
#export OMP_NUM_THREADS=
#TX
#export SOCKET_SERVER_PORT_DATA=5006
#RX
#export SOCKET_SERVER_PORT_CAM=5008
#export SOCKET_SERVER_NAME_DATA=localhost
export SOCKET_SERVER_NAME_DATA=158.196.27.123
${ROOT_DIR}/install/vrclient_gcc/bin/blender_client
#chmod +x ${HOME}/temp/blender_client
#${HOME}/temp/blender_client
#!/bin/sh -eu
#ml CMake
#ml GCC
#ml CUDA
ROOT=${PWD}
#git clone --recurse-submodules=gpujpeg -b vr https://github.com/CESNET/UltraGrid.git ultragrid
#git clone -b vr https://github.com/CESNET/UltraGrid.git ultragrid
#cd src/ultragrid
#git submodule update --init --recursive
# GPUJPEG
#cd $ROOT/src/ultragrid/gpujpeg
#./autogen.sh --prefix=/home/milanjaros/projects/blender/install/gpujpeg
#make -j
#make install
#export PKG_CONFIG_PATH=/home/milanjaros/projects/blender/install/gpujpeg/lib/pkgconfig
# UltraGrid
cd ${ROOT}/src/ultragrid
#./autogen.sh --enable-gpujpeg --enable-cuda-cap --disable-gl --prefix=/home/milanjaros/projects/blender/install/ultragrid
./autogen.sh --enable-gl --prefix=${ROOT}/install/ultragrid
make -j
make install
#GPUJPEG_INC=/home/milanjaros/projects/blender/install/gpujpeg/include GPUJPEG_LIB=/home/milanjaros/projects/blender/install/gpujpeg/lib/libgpujpeg.so
#!/bin/sh -eu
#ml CMake
#ml GCC
#ml CUDA
ROOT=$PWD
#export LD_LIBRARY_PATH=/home/milanjaros/projects/blender/install/gpujpeg/lib:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=/home/milanjaros/Downloads/nvidia/NVIDIA-Linux-x86_64-418.30:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
#vglrun /home/milanjaros/projects/blender/install/ultragrid/bin/uv -t cuda -c GPUJPEG localhost
#vglrun /home/milanjaros/projects/blender/install/ultragrid/bin/uv -t cuda -c GPUJPEG 158.196.27.123
$ROOT/install/ultragrid/bin/uv -t shm:force -c libavcodec:codec=mjpeg:threads=16 -l unlimited localhost
#/home/milanjaros/temp/uv -P 5004:5004 -t shm:force -c libavcodec:codec=mjpeg:threads=16 -l unlimited vizserv1
#/home/milanjaros/projects/blender/install/ultragrid/bin/uv -t cuda:force -c GPUJPEG 10.17.3.1
#!/bin/sh -eu
#ml CMake
#ml GCC
#ml CUDA
ROOT=$PWD
#export LD_LIBRARY_PATH=/home/milanjaros/projects/blender/install/gpujpeg/lib:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=/home/milanjaros/Downloads/nvidia/NVIDIA-Linux-x86_64-418.30:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
vglrun $ROOT/install/ultragrid/bin/uv -d gl localhost
#vglrun /home/milanjaros/projects/blender/install/ultragrid/bin/uv -t cuda -c GPUJPEG 158.196.27.123
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment