Skip to content

Commit

Permalink
operators not working whe not compiled under gcc-4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrazyT committed Nov 7, 2020
1 parent cd402ee commit 86a829e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN python3 -m pip install wandb
RUN ln -s /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 /usr/lib/x86_64-linux-gnu/libnvidia-ml.so
RUN bash -c 'source /usr/local/etc/profile.d/conda.sh && conda activate demon && pip install wandb'
RUN rm /usr/local/bin/python && ln -s /usr/bin/python3 /usr/local/bin/python
RUN sed -i "s/bin\/python/bin\/python3/" /usr/local/bin/conda

EXPOSE 8888
CMD jupyter-lab --ip="*" --no-browser --allow-root
2 changes: 1 addition & 1 deletion build_lmspecialops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ls /usr/bin/g++-*
#cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7 -DTENSORFLOW_INCLUDE_DIR=/usr/local/envs/demon/lib/python3.6/site-packages/tensorflow/include -DTENSORFLOW_FRAMEWORK_LIB=/usr/local/envs/demon/lib/python3.6/site-packages/tensorflow/libtensorflow_framework.so -DCUDA_ARCH_LIST="7.0" -DCMAKE_LINK_WHAT_YOU_USE=1 -UCMAKE_CXX_STANDARD -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" -DPYTHON_EXECUTABLE=/usr/local/envs/demon/bin/python3.6 ..
ln -s /usr/local/lib/python3.6/dist-packages/tensorflow/libtensorflow_framework.so.1 /usr/local/lib/python3.6/dist-packages/tensorflow/libtensorflow_framework.so
ln -s /usr/local/$CUDA_DIR_NAME/targets/x86_64-linux/lib/stubs/libcuda.so /usr/local/$CUDA_DIR_NAME/targets/x86_64-linux/lib/stubs/libcuda.so.1
LD_LIBRARY_PATH=/usr/local/$CUDA_DIR_NAME/targets/x86_64-linux/lib/stubs/ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7 -DTENSORFLOW_INCLUDE_DIR=/usr/local/lib/python3.6/dist-packages/tensorflow/include -DTENSORFLOW_FRAMEWORK_LIB=/usr/local/lib/python3.6/dist-packages/tensorflow/libtensorflow_framework.so -DCUDA_ARCH_LIST="5.2" -DCMAKE_LINK_WHAT_YOU_USE=1 -UCMAKE_CXX_STANDARD -DCMAKE_CXX_FLAGS="-mno-avx512f -D_GLIBCXX_USE_CXX11_ABI=0" -DPYTHON_EXECUTABLE=/usr/bin/python3.6 ..
LD_LIBRARY_PATH=/usr/local/$CUDA_DIR_NAME/targets/x86_64-linux/lib/stubs/ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 -DTENSORFLOW_INCLUDE_DIR=/usr/local/lib/python3.6/dist-packages/tensorflow/include -DTENSORFLOW_FRAMEWORK_LIB=/usr/local/lib/python3.6/dist-packages/tensorflow/libtensorflow_framework.so -DCUDA_ARCH_LIST="5.2" -DCMAKE_LINK_WHAT_YOU_USE=1 -UCMAKE_CXX_STANDARD -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" -DPYTHON_EXECUTABLE=/usr/bin/python3.6 ..
if [ "$?" != "0" ]
then
exit 1
Expand Down
7 changes: 6 additions & 1 deletion build_multivih5datareader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@ rm -Rf build > /dev/null
mkdir build
cd build
#cmake -DCMAKE_BUILD_TYPE=Release -UCMAKE_CXX_STANDARD -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" -DTENSORFLOW_INCLUDE_DIR=/usr/local/envs/demon/lib/python3.6/site-packages/tensorflow/include -DTENSORFLOW_FRAMEWORK_LIB=/usr/local/envs/demon/lib/python3.6/site-packages/tensorflow/libtensorflow_framework.so.1 -DPYTHON_EXECUTABLE=/usr/local/envs/demon/bin/python3.6 ..
LD_LIBRARY_PATH=/usr/local/$CUDA_DIR_NAME/targets/x86_64-linux/lib/stubs/ cmake -DCMAKE_BUILD_TYPE=Release -UCMAKE_CXX_STANDARD -DCMAKE_C_FLAGS="-I/usr/local/include" -DCMAKE_CXX_FLAGS="-I/usr/local/include -D_GLIBCXX_USE_CXX11_ABI=0" -DTENSORFLOW_INCLUDE_DIR=/usr/local/lib/python3.6/dist-packages/tensorflow/include -DTENSORFLOW_FRAMEWORK_LIB=/usr/local/lib/python3.6/dist-packages/tensorflow/libtensorflow_framework.so -DPYTHON_EXECUTABLE=/usr/bin/python3.6 ..
LD_LIBRARY_PATH=/usr/local/$CUDA_DIR_NAME/targets/x86_64-linux/lib/stubs/ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 -UCMAKE_CXX_STANDARD -DCMAKE_C_FLAGS="-I/usr/local/include" -DCMAKE_CXX_FLAGS="-I/usr/local/include -D_GLIBCXX_USE_CXX11_ABI=0" -DTENSORFLOW_INCLUDE_DIR=/usr/local/lib/python3.6/dist-packages/tensorflow/include -DTENSORFLOW_FRAMEWORK_LIB=/usr/local/lib/python3.6/dist-packages/tensorflow/libtensorflow_framework.so -DPYTHON_EXECUTABLE=/usr/bin/python3.6 ..
if [ "$?" != "0" ]
then
exit 1
fi

sed -i s/40900/40800/ /demon_v2/build/json_for_modern_cpp/json.hpp
sed -i 's/inline half operator""/\/\/inline half operator""/' /demon_v2/build/half/include/half.hpp
sed -i 's/half operator""/\/\/half operator""/' /demon_v2/build/half/include/half.hpp
sed -i 's/friend half literal::operator""/\/\/friend half literal::operator""/' /demon_v2/build/half/include/half.hpp

make clean
if [ "$CORES" != "" ]
then
Expand Down

0 comments on commit 86a829e

Please sign in to comment.