From b19eab6b837e462f48704c42f5d4679b17680b90 Mon Sep 17 00:00:00 2001 From: JLu823 <130578386+JLu823@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:34:11 -0400 Subject: [PATCH 1/7] Updated requirements.txt for CUDA 12.0 support --- requirements.txt | 122 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 114 insertions(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8c12478..bc78259 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,114 @@ -numpy==1.15.4 -Keras==2.2.4 -matplotlib==2.2.3 -pandas==0.23.4 -h5py==2.8.0 -tqdm==4.28.1 -scikit_learn==0.24.2 -tikzplotlib==0.9.8 \ No newline at end of file +# This file may be used to create an environment using: +# $ conda create --name --file +# platform: linux-64 +_libgcc_mutex=0.1=main +_openmp_mutex=5.1=1_gnu +_tflow_select=2.3.0=mkl +absl-py=0.15.0=pyhd3eb1b0_0 +astor=0.8.1=py36h06a4308_0 +blas=1.0=mkl +c-ares=1.18.1=h7f8727e_0 +ca-certificates=2023.01.10=h06a4308_0 +certifi=2020.6.20=pyhd3eb1b0_3 +cycler=0.10.0=py_1 +dbus=1.13.0=h3a4f0e9_0 +expat=2.2.5=hfc679d8_2 +fontconfig=2.13.1=h65d0f4c_0 +freetype=2.9.1=h6debe1e_4 +gast=0.2.2=py36_0 +gettext=0.19.8.1=h5e8e0c9_1 +glib=2.56.2=h464dc38_1 +google-pasta=0.2.0=pyhd3eb1b0_0 +grpcio=1.14.1=py36h9ba97e2_0 +gst-plugins-base=1.12.5=hde13a9d_0 +gstreamer=1.12.5=h5856ed1_0 +h5py=2.10.0=py36hd6299e0_1 +hdf5=1.10.6=h3ffc7dd_1 +icu=58.2=hfc679d8_0 +importlib-metadata=4.8.1=py36h06a4308_0 +intel-openmp=2022.1.0=h9e868ea_3769 +joblib=1.0.1=pyhd3eb1b0_0 +jpeg=9c=h470a237_1 +keras=2.3.1=py36_0 +keras-applications=1.0.8=py_1 +keras-preprocessing=1.1.2=pyhd3eb1b0_0 +kiwisolver=1.0.1=py36h2d50403_2 +ld_impl_linux-64=2.38=h1181459_1 +libffi=3.2.1=hfc679d8_5 +libgcc-ng=11.2.0=h1234567_1 +libgfortran-ng=11.2.0=h00389a5_1 +libgfortran5=11.2.0=h1234567_1 +libgomp=11.2.0=h1234567_1 +libgpuarray=0.7.6=h14c3975_1003 +libiconv=1.15=h470a237_4 +libpng=1.6.36=ha92aebf_0 +libprotobuf=3.17.2=h4ff587b_1 +libstdcxx-ng=11.2.0=h1234567_1 +libtiff=4.1.0=hc3755c2_3 +libuuid=2.32.1=h470a237_2 +libxcb=1.13=h470a237_2 +libxml2=2.9.8=h422b904_5 +lz4-c=1.8.3=he1b5a44_1001 +mako=1.1.0=py_0 +markdown=3.3.4=py36h06a4308_0 +markupsafe=1.1.1=py36h8c4c3a4_1 +matplotlib=3.0.2=py36h8a2030e_1 +matplotlib-base=3.0.2=py36h20b835b_1 +mkl=2019.4=243 +mkl-service=2.3.0=py36he8ac12f_0 +mkl_fft=1.3.0=py36h54f3939_0 +mkl_random=1.1.0=py36hd6b4f25_0 +ncurses=6.1=hfc679d8_2 +numpy=1.19.2=py36h54aff64_0 +numpy-base=1.19.2=py36hfa32c7d_0 +olefile=0.46=py_0 +openssl=1.0.2u=h7b6447c_0 +opt_einsum=3.3.0=pyhd3eb1b0_1 +pandas=1.1.5=py36ha9443f7_0 +pcre=8.41=hfc679d8_3 +pillow=7.0.0=py36h8328e55_1 +pip=21.2.2=py36h06a4308_0 +protobuf=3.17.2=py36h295c915_0 +pthread-stubs=0.4=h470a237_1 +pygpu=0.7.6=py36hc1659b7_1000 +pyparsing=2.3.0=py_0 +pyqt=5.6.0=py36h8210e8a_8 +python=3.6.7=h5001a0f_1 +python-dateutil=2.7.5=py_0 +python_abi=3.6=1_cp36m +pytz=2021.3=pyhd3eb1b0_0 +pyyaml=5.3.1=py36h8c4c3a4_0 +qt=5.6.2=hf70d934_9 +readline=7.0=haf1bffa_1 +scikit-learn=0.24.2=py36ha9443f7_0 +scipy=1.5.4=pypi_0 +setuptools=58.0.4=py36h06a4308_0 +sip=4.18.1=py36hfc679d8_0 +six=1.16.0=pyhd3eb1b0_1 +sqlite=3.26.0=hb1c47c0_0 +tensorboard=1.15.0=pyhb230dea_0 +tensorflow=1.15.0=mkl_py36h4920b83_0 +tensorflow-base=1.15.0=mkl_py36he1670d9_0 +tensorflow-estimator=1.15.1=pyh2649769_0 +termcolor=1.1.0=py36h06a4308_1 +theano=1.0.3=py36hfc679d8_1 +threadpoolctl=2.2.0=pyh0d69192_0 +tikzplotlib=0.9.1=py_1 +tk=8.6.12=h1ccaba5_0 +toolchain=2.4.0=0 +toolchain_c_linux-64=2.4.0=0 +toolchain_cxx_linux-64=2.4.0=0 +tornado=5.1.1=py36h470a237_0 +tqdm=4.29.0=py_0 +typing_extensions=4.1.1=pyh06a4308_0 +webencodings=0.5.1=py36_1 +werkzeug=0.16.1=py_0 +wheel=0.37.1=pyhd3eb1b0_0 +wrapt=1.12.1=py36h7b6447c_1 +xorg-libxau=1.0.8=h470a237_6 +xorg-libxdmcp=1.1.2=h470a237_7 +xz=5.2.10=h5eee18b_1 +yaml=0.2.2=h516909a_1 +zipp=3.6.0=pyhd3eb1b0_0 +zlib=1.2.13=h5eee18b_0 +zstd=1.4.4=h3b9ef0a_2 From f66dd9c4fa3cde30d848ebc6aa770f1be636eab5 Mon Sep 17 00:00:00 2001 From: JLu823 <130578386+JLu823@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:37:27 -0400 Subject: [PATCH 2/7] Update launch_filters.sh for Python 3 --- keras_code/launch_filters.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_code/launch_filters.sh b/keras_code/launch_filters.sh index f5e99de..1757d3b 100755 --- a/keras_code/launch_filters.sh +++ b/keras_code/launch_filters.sh @@ -18,7 +18,7 @@ how_many_blocks_per_frame=5 batch_size=100 num_classes=24 -python2 ./DeepBeamGetFilters.py \ +python ./DeepBeamGetFilters.py \ --model_dir_path $root$model \ --layer_num $layer_num \ --id_gpu $id_gpu \ From 95008471143fa86f0b61b1926aaaa4f227a8eccb Mon Sep 17 00:00:00 2001 From: JLu823 <130578386+JLu823@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:38:15 -0400 Subject: [PATCH 3/7] Update launch_deepbeam_testing.sh for Python 3 --- keras_code/launch_deepbeam_testing.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras_code/launch_deepbeam_testing.sh b/keras_code/launch_deepbeam_testing.sh index 1869ca3..27b985c 100755 --- a/keras_code/launch_deepbeam_testing.sh +++ b/keras_code/launch_deepbeam_testing.sh @@ -1,7 +1,7 @@ #!/bin/bash # Customize this for your CUDA install -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.0/lib64/ # The GPU id depends on the number of GPUs in your system id_gpu=0 @@ -37,7 +37,7 @@ file_save_accuracy=testing_results.pkl -python2 ./DeepBeamTesting.py \ +python ./DeepBeamTesting.py \ --data_path $data_path \ --model_dir_path $root$model \ --batch_size $batch_size \ From b2a52f95dae5e3fbf8884af6fdb80a4abeb17dab Mon Sep 17 00:00:00 2001 From: JLu823 <130578386+JLu823@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:39:12 -0400 Subject: [PATCH 4/7] Update launch_deepbeam_mixed_testing.sh Update launch_deepbeam_mixed_testing.sh for Python 3 --- keras_code/launch_deepbeam_mixed_testing.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras_code/launch_deepbeam_mixed_testing.sh b/keras_code/launch_deepbeam_mixed_testing.sh index 9c0438a..74ca918 100755 --- a/keras_code/launch_deepbeam_mixed_testing.sh +++ b/keras_code/launch_deepbeam_mixed_testing.sh @@ -1,7 +1,7 @@ #!/bin/bash # Customize this for your CUDA install -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.0/lib64/ # The GPU id depends on the number of GPUs in your system id_gpu=0 @@ -38,7 +38,7 @@ plot_confusion=1 score_only=0 -python2 ./DeepBeamTestingMixed.py \ +python ./DeepBeamTestingMixed.py \ --model_dir_path $root$model \ --batch_size $batch_size \ --file_save_accuracy $file_save_accuracy \ From de4484f2c6283b95a17008c6015375f10f02da60 Mon Sep 17 00:00:00 2001 From: JLu823 <130578386+JLu823@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:40:01 -0400 Subject: [PATCH 5/7] Update launch_deepbeam_mixed.sh Update launch_deepbeam_mixed.sh for Python 3 --- keras_code/launch_deepbeam_mixed.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keras_code/launch_deepbeam_mixed.sh b/keras_code/launch_deepbeam_mixed.sh index e9bfcab..2eee375 100755 --- a/keras_code/launch_deepbeam_mixed.sh +++ b/keras_code/launch_deepbeam_mixed.sh @@ -1,7 +1,7 @@ #!/bin/bash # Customize this for your CUDA install -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.0/lib64/ # The GPU id depends on the number of GPUs in your system id_gpu=0 @@ -75,7 +75,7 @@ save_path+="_2dmodel_$is_2d_model" save_path+="_ne_$epochs" save_path+="_bs_$batch_size" -python2 ./DeepBeamMixed.py \ +python ./DeepBeamMixed.py \ --batch_size $batch_size \ --train_cnn \ --test_only $test_only \ @@ -101,4 +101,4 @@ python2 ./DeepBeamMixed.py \ --id_gpu $id_gpu \ --is_2d_model $is_2d_model \ --patience $patience \ - --save_path $save_path \ No newline at end of file + --save_path $save_path From 136dd278703c7262e8fb71d1ba268fe052174d59 Mon Sep 17 00:00:00 2001 From: JLu823 <130578386+JLu823@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:40:36 -0400 Subject: [PATCH 6/7] Update launch_deepbeam_aoa.sh Update launch_deepbeam_aoa.sh for Python 3 --- keras_code/launch_deepbeam_aoa.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras_code/launch_deepbeam_aoa.sh b/keras_code/launch_deepbeam_aoa.sh index deb9da7..e798e28 100755 --- a/keras_code/launch_deepbeam_aoa.sh +++ b/keras_code/launch_deepbeam_aoa.sh @@ -1,7 +1,7 @@ #!/bin/bash # Customize this for your CUDA install -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.0/lib64/ # The GPU id depends on the number of GPUs in your system id_gpu=0 @@ -68,7 +68,7 @@ save_path+="_srn_$snr" save_path+="_ne_$epochs" save_path+="_bs_$batch_size" -python2 ./DeepBeamAoa.py \ +python ./DeepBeamAoa.py \ --data_path $data_path \ --batch_size $batch_size \ --train_cnn \ From 527d7351d2c07e11029e58fb8c72938ec06c5c91 Mon Sep 17 00:00:00 2001 From: JLu823 <130578386+JLu823@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:41:41 -0400 Subject: [PATCH 7/7] Update launch_deepbeam.sh Update launch_deepbeam.sh for Python 3 --- keras_code/launch_deepbeam.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keras_code/launch_deepbeam.sh b/keras_code/launch_deepbeam.sh index f79b72f..b15d1d9 100755 --- a/keras_code/launch_deepbeam.sh +++ b/keras_code/launch_deepbeam.sh @@ -1,7 +1,7 @@ #!/bin/bash # Customize this for your CUDA install -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.0/lib64/ # The GPU id depends on the number of GPUs in your system id_gpu=0 @@ -79,7 +79,7 @@ save_path+="_ne_$epochs" save_path+="_bs_$batch_size" # Call the main python script for training -python2 ./DeepBeam.py \ +python ./DeepBeam.py \ --data_path $data_path \ --batch_size $batch_size \ --train_cnn \ @@ -105,4 +105,4 @@ python2 ./DeepBeam.py \ --id_gpu $id_gpu \ --is_2d_model $is_2d_model \ --patience $patience \ - --save_path $save_path \ No newline at end of file + --save_path $save_path