lol

julia02: build with openblas

Compared to ATLAS, OpenBLAS offers better performance, faster builds,
and dynamic architecture detection.

+8 -7
+8 -6
pkgs/development/compilers/julia/0.2.nix
··· 1 1 { stdenv, fetchgit, gfortran, perl, m4, llvm, gmp, pcre, zlib 2 2 , readline, fftwSinglePrec, fftw, libunwind, suitesparse, glpk, fetchurl 3 - , ncurses, libunistring, lighttpd, patchelf, openblas, liblapack 3 + , ncurses, libunistring, lighttpd, patchelf, openblas 4 4 , tcl, tk, xproto, libX11, git, mpfr 5 5 } : 6 6 let ··· 71 71 72 72 buildInputs = [ gfortran perl m4 gmp pcre llvm readline zlib 73 73 fftw fftwSinglePrec libunwind suitesparse glpk ncurses libunistring patchelf 74 - openblas liblapack tcl tk xproto libX11 git mpfr 74 + openblas tcl tk xproto libX11 git mpfr 75 75 ]; 76 76 77 77 configurePhase = '' ··· 91 91 copy_kill_hash "${dsfmt_src}" deps/random 92 92 93 93 ${if realGcc ==null then "" else 94 - ''export NIX_LDFLAGS="$NIX_LDFLAGS -L${realGcc}/lib -L${realGcc}/lib64 -lpcre -llapack -lm -lfftw3f -lfftw3 -lglpk -lunistring -lz -lgmp -lmpfr"''} 94 + ''export NIX_LDFLAGS="$NIX_LDFLAGS -L${realGcc}/lib -L${realGcc}/lib64 -lpcre -lopenblas -lm -lfftw3f -lfftw3 -lglpk -lunistring -lz -lgmp -lmpfr"''} 95 95 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC " 96 96 97 97 export LDFLAGS="-L${suitesparse}/lib -L$out/lib/julia -Wl,-rpath,$out/lib/julia" 98 98 99 99 export GLPK_PREFIX="${glpk}/include" 100 100 101 - mkdir -p "$out/lib" 102 101 sed -e "s@/usr/local/lib@$out/lib@g" -i deps/Makefile 103 102 sed -e "s@/usr/lib@$out/lib@g" -i deps/Makefile 104 103 ··· 111 110 112 111 preBuild = '' 113 112 mkdir -p usr/lib 114 - 115 - echo "$out" 113 + 116 114 mkdir -p "$out/lib" 115 + ln -s "${openblas}/lib/libopenblas.so" "$out/lib/libblas.so" 116 + ln -s "${openblas}/lib/libopenblas.so" "$out/lib/liblapack.so" 117 + 118 + echo "$out" 117 119 ( 118 120 cd "$(mktemp -d)" 119 121 for i in "${suitesparse}"/lib/lib*.a; do
-1
pkgs/top-level/all-packages.nix
··· 3990 3990 jikes = callPackage ../development/compilers/jikes { }; 3991 3991 3992 3992 julia02 = callPackage ../development/compilers/julia/0.2.nix { 3993 - liblapack = liblapack.override {shared = true;}; 3994 3993 llvm = llvm_33; 3995 3994 suitesparse = suitesparse_4_2; 3996 3995 };