diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/linux/configure.ac | 22 | ||||
-rw-r--r-- | build/msvc/build_env.bat | 9 | ||||
-rw-r--r-- | build/msvc/build_python2.bat | 28 | ||||
-rw-r--r-- | build/msvc/build_release.bat | 58 |
4 files changed, 27 insertions, 90 deletions
diff --git a/build/linux/configure.ac b/build/linux/configure.ac index 7ef7187..5ff4eb6 100644 --- a/build/linux/configure.ac +++ b/build/linux/configure.ac @@ -1,6 +1,6 @@ dnl ----------------------------------------------------------------------- -dnl Copyright: 2010-2018, imec Vision Lab, University of Antwerp -dnl 2014-2018, CWI, Amsterdam +dnl Copyright: 2010-2021, imec Vision Lab, University of Antwerp +dnl 2014-2021, CWI, Amsterdam dnl dnl Contact: astra@astra-toolbox.com dnl Website: http://www.astra-toolbox.com/ @@ -23,7 +23,7 @@ dnl along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>. dnl dnl ----------------------------------------------------------------------- -AC_INIT(astra, 1.9.9dev) +AC_INIT(astra, 2.0.0) AC_CONFIG_SRCDIR([Makefile.in]) LT_INIT([disable-static]) @@ -133,9 +133,21 @@ fi AC_ARG_WITH(cuda_compute, [[ --with-cuda-compute=archs comma separated list of CUDA compute models (optional)]],,) if test x"$HAVECUDA" = xyes; then AC_MSG_CHECKING([for nvcc archs]) - dnl 10 11 12 13 20 21 30 32 35 37 50 52 53 60 61 62 70 72 75 + dnl 10 11 12 13 20 21 30 32 35 37 50 52 53 60 61 62 70 72 75 80 86 + dnl + dnl Build cubin for range of platforms, and ptx for newest for forward compat. + dnl Build cubin x.0 for older platforms, and all x.y for "recent" ones. + dnl + dnl Include 3.5 since CUDA 11.x doesn't support 3.0, but does support 3.5. + dnl (All other CUDA toolkits from 7-10 start support at x.0 versions.) + dnl Skip 7.2 cubin since that seems to be Jetson-only (and can use 7.0 cubin). + dnl + dnl From CUDA Programming Guide: + dnl "Binary compatibility is guaranteed from one minor revision to the next one, but not from one minor revision to the previous one or across major revisions." + dnl + if test x"$with_cuda_compute" = x; then - with_cuda_compute="20,30,35,50,60,70,75" + with_cuda_compute="20,30,35,50,60,70,75,80,86" fi ASTRA_FIND_NVCC_ARCHS([$with_cuda_compute],NVCCFLAGS_EXTRA,NVCCARCHS) AC_MSG_RESULT([$NVCCARCHS]) diff --git a/build/msvc/build_env.bat b/build/msvc/build_env.bat index 73d040a..ef689da 100644 --- a/build/msvc/build_env.bat +++ b/build/msvc/build_env.bat @@ -1,7 +1,5 @@ -set B_WP2=2.7.10.3 -set B_WP3=3.7.2.0 -set B_WINPYTHON2=E:\wjp\WinPython-64bit-%B_WP2% -set B_WINPYTHON3=E:\wjp\WinPython-64bit-%B_WP3% +set B_WP3=3.9.5.0 +set B_WINPYTHON3=E:\wjp\WPy64-3950 set B_MATLAB_ROOT=C:\Program Files\MATLAB\R2018b set B_VC=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\ set B_BV=1_69 @@ -9,8 +7,7 @@ set B_BOOST=E:\wjp\boost_%B_BV%_0 set B_VCREDIST=E:\wjp\vs2017_redist\vc_redist.x64.exe -set B_README_WP2=C:\WinPython-64bit-%B_WP2%\python-%B_WP2:~0,-2%.amd64\Lib\site-packages set B_README_WP3=C:\WinPython-64bit-%B_WP3%\python-%B_WP3:~0,-2%.amd64\Lib\site-packages set B_RELEASE_TAG=master -set B_RELEASE=1.9.0.dev11 +set B_RELEASE=2.0.0 diff --git a/build/msvc/build_python2.bat b/build/msvc/build_python2.bat deleted file mode 100644 index 208e17b..0000000 --- a/build/msvc/build_python2.bat +++ /dev/null @@ -1,28 +0,0 @@ -@echo off - -cd /D %~dp0 -cd ..\.. -set R=%CD% - -call "%~dp0build_env.bat" - -call "%B_WINPYTHON2%\scripts\env.bat" -call "%B_VC%\vcvars64.bat" - -cd /D %R% - -msbuild astra_vc14.sln /p:Configuration=Release_CUDA /p:Platform=x64 /t:astra_vc14 - -cd python - -rd /s /q build -rd /s /q "%WINPYDIR%\lib\site-packages\astra" - -set VS90COMNTOOLS=%VS140COMNTOOLS% -set CL=/DASTRA_CUDA /DASTRA_PYTHON /EHsc -set INCLUDE=%R%\include;%R%\lib\include;%CUDA_PATH%\include;%INCLUDE% -copy ..\bin\x64\Release_CUDA\AstraCuda64.lib astra.lib -python builder.py build_ext --compiler=msvc install -copy ..\bin\x64\Release_CUDA\AstraCuda64.dll "%WINPYDIR%\lib\site-packages\astra" - -pause diff --git a/build/msvc/build_release.bat b/build/msvc/build_release.bat index f10ddc5..7c53ddb 100644 --- a/build/msvc/build_release.bat +++ b/build/msvc/build_release.bat @@ -13,8 +13,7 @@ mkdir release cd release mkdir src mkdir matlab -mkdir python27 -mkdir python37 +mkdir python39 cd src git clone -b %B_RELEASE_TAG% https://github.com/astra-toolbox/astra-toolbox astra-%B_RELEASE% @@ -46,51 +45,7 @@ pause rem ------------------------------------------------------------------- -cd %R%\release\python27 -mkdir astra-%B_RELEASE% -cd astra-%B_RELEASE% -xcopy /e /i %R%\samples\python samples -copy %R%\NEWS.txt . -copy %R%\COPYING COPYING.txt - -copy %B_VCREDIST% . - -mkdir astra -call "%B_WINPYTHON2%\scripts\env.bat" -copy %WINPYDIR%\lib\site-packages\astra\*.* astra -copy %R%\bin\x64\Release_CUDA\AstraCuda64.lib astra -copy "%CUDA_PATH%\bin\cudart64_90.dll" astra -copy "%CUDA_PATH%\bin\cufft64_90.dll" astra - -( -echo ----------------------------------------------------------------------- -echo This file is part of the ASTRA Toolbox -echo. -echo Copyright: 2010-2019, imec Vision Lab, University of Antwerp -echo 2014-2019, CWI, Amsterdam -echo http://visielab.uantwerpen.be/ and http://www.cwi.nl/ -echo License: Open Source under GPLv3 -echo Contact: astra@astra-toolbox.com -echo Website: http://www.astra-toolbox.com/ -echo ----------------------------------------------------------------------- -echo. -echo. -echo This directory contains pre-built Python modules for the ASTRA Toolbox. -echo. -echo It has been built with WinPython-64bit-%B_WP2%. -echo. -echo To use it, move the astra\ directory to your existing site-packages directory. -echo Its exact location depends on your Python installation, but should look -echo similar to %B_README_WP2% . -echo. -echo Sample code can be found in the samples\ directory. -) > README.txt - -pause - -rem ------------------------------------------------------------------- - -cd %R%\release\python37 +cd %R%\release\python39 mkdir astra-%B_RELEASE% cd astra-%B_RELEASE% xcopy /e /i %R%\samples\python samples @@ -100,8 +55,10 @@ copy %R%\COPYING COPYING.txt copy %B_VCREDIST% . mkdir astra +mkdir astra\plugins call "%B_WINPYTHON3%\scripts\env.bat" copy %WINPYDIR%\lib\site-packages\astra\*.* astra +copy %WINPYDIR%\lib\site-packages\astra\plugins\*.* astra\plugins copy %R%\bin\x64\Release_CUDA\AstraCuda64.lib astra copy "%CUDA_PATH%\bin\cudart64_90.dll" astra copy "%CUDA_PATH%\bin\cufft64_90.dll" astra @@ -110,8 +67,8 @@ copy "%CUDA_PATH%\bin\cufft64_90.dll" astra echo ----------------------------------------------------------------------- echo This file is part of the ASTRA Toolbox echo. -echo Copyright: 2010-2019, imec Vision Lab, University of Antwerp -echo 2014-2019, CWI, Amsterdam +echo Copyright: 2010-2021, imec Vision Lab, University of Antwerp +echo 2014-2021, CWI, Amsterdam echo http://visielab.uantwerpen.be/ and http://www.cwi.nl/ echo License: Open Source under GPLv3 echo Contact: astra@astra-toolbox.com @@ -134,8 +91,7 @@ pause cd %R%\release python -c "import shutil; shutil.make_archive('astra-%B_RELEASE%-matlab-win-x64', 'zip', 'matlab')" -python -c "import shutil; shutil.make_archive('astra-%B_RELEASE%-python27-win-x64', 'zip', 'python27')" -python -c "import shutil; shutil.make_archive('astra-%B_RELEASE%-python37-win-x64', 'zip', 'python37')" +python -c "import shutil; shutil.make_archive('astra-%B_RELEASE%-python39-win-x64', 'zip', 'python39')" python -c "import shutil; shutil.make_archive('astra-%B_RELEASE%', 'zip', 'src')" pause |