-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Switch staticbuild scripts to Flang Fortran compiler #18513
base: master
Are you sure you want to change the base?
Conversation
Hey @leezu , Thanks for submitting the PR
CI supported jobs: [centos-gpu, unix-cpu, windows-gpu, miscellaneous, website, clang, centos-cpu, unix-gpu, sanity, windows-cpu, edge] Note: |
Flang fortran compiler as replacement for gfortran due to the resulting runtime dependency on libgfortran.so which is GPL-licensed and thus https://www.apache.org/legal/resolved.html#category-x for distribution. We need a Fortran compiler to compile the OpenBLAS Lapack implementation.
Cuda 9.2 misses LLVM 7 support. Switch cuda builds in a separate commit, to simplify backporting of CPU changes.
- Update Jenkins_pipeline.groovy after keeping GPU builds on gfortran - Use llvm flang toolchain only for staticbuild. Some bug causes object file size explosion in the non-static build script. 1013M build/CMakeFiles/mxnet.dir/src/operator/numpy/np_elemwise_broadcast_logic_op.cc.o 1.3G build/CMakeFiles/mxnet.dir/src/operator/numpy/np_where_op.cc.o 1.9G build/CMakeFiles/mxnet.dir/src/operator/numpy/np_broadcast_reduce_op_value.cc.o 2.1G build/CMakeFiles/mxnet.dir/src/operator/numpy/linalg/np_norm_forward.cc.o
We can't delete this hack when supporting the Makefile build: ln -s libopenblas.a $DEPS_PATH/lib/libcblas.a ln -s libopenblas.a $DEPS_PATH/lib/liblapack.a
Some release between 3.4.3 and 3.4.8 introduces a bug in OpenCV cmake configuration related to EIGEN handling, causing error in MXNet compilation. It may be fixed in upcoming OpenCV 3.4.11.
Hi @leeze, as it's tagged with "R1.7.0"/"Backport 1.x" label, so it's a necessary fix for 1.7.0 and will be backported to v1.7.x later, right? |
It's only for the distribution scripts, so it can be backported to the 1.7 branch at a later point (not a release blocker) |
Got it, thanks! |
Flang fortran compiler as replacement for gfortran due to the resulting runtime
dependency on libgfortran.so which is GPL-licensed and thus
https://www.apache.org/legal/resolved.html#category-x for distribution.
We need a Fortran compiler to compile the OpenBLAS Lapack implementation.
Note that Flang will be replaced by F18 as part of a future LLVM version. But currently F18 is not yet ready.