Skip to content

Commit

Permalink
Recommend using overrides in Make.user instead of modifying Make.inc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralBShah committed May 26, 2015
1 parent 86a7d57 commit b05a330
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
9 changes: 0 additions & 9 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -510,15 +510,6 @@ LLVM_VER=3.6.0

USE_BLAS64=0
OPENBLAS_DYNAMIC_ARCH=0

#OPENBLAS_TARGET_ARCH=ARMV7
#USE_SYSTEM_BLAS=1
#USE_SYSTEM_LAPACK=1
#USE_SYSTEM_LIBM=1
#USE_SYSTEM_FFTW=1
#USE_SYSTEM_GMP=1
#USE_SYSTEM_MPFR=1

endif

# Set some ARCH-specific flags
Expand Down
29 changes: 23 additions & 6 deletions README.arm.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,31 @@ We recommend using at least Ubuntu 14.04 and gcc 4.8, which is part of the
standard `build-essentials`.

Julia on ARM can be built by simply typing `make`, which will download all
the relevant libraries. This is the recommended way, and it will take a
the relevant libraries. This is the *recommended* way, and it will take a
few hours.

In case the build is troublesome, you can avoid compiling all the
dependencies by commenting out the appropriate `USE_SYSTEM_XYZ`
lines in the `arm` section of `Make.inc`. Install the following
libraries in that case. Also note that this will use the reference
BLAS, which is 10-100x slower.
OpenBLAS detects the target architecture reasonably well, but in case
it does not, you can force the target architecture should you need to in
`Make.user`.

````
override OPENBLAS_TARGET_ARCH=ARMV7
````

Similarly, one can install other system libraries instead of building them,
should the build be troublesome, by adding the following lines in `Make.user`:

````
override USE_SYSTEM_BLAS=1
override USE_SYSTEM_LAPACK=1
override USE_SYSTEM_LIBM=1
override USE_SYSTEM_FFTW=1
override USE_SYSTEM_GMP=1
override USE_SYSTEM_MPFR=1
override USE_SYSTEM_ARPACK=1
````

The following command will install all the necessary libraries on Ubuntu.

````
sudo apt-get install libblas3gf liblapack3gf libfftw3-dev libgmp3-dev libmpfr-dev libblas-dev liblapack-dev cmake gcc-4.8 g++-4.8 gfortran libgfortran3
Expand Down

0 comments on commit b05a330

Please sign in to comment.