Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Building Julia on Cori

Leonard Truong edited this page Feb 23, 2016 · 2 revisions

Module Dependencies

module load python gcc autoconf cmake

Building Julia

git clone https://github.com/JuliaLang/julia.git
cd julia
git checkout tags/v0.4.3
printf "USEICC = 1\nUSEIFC = 1\nUSE_INTEL_MKL = 1\nUSE_INTEL_MKL_FFT = 1\nUSE_INTEL_LIBM = 1\n" >> Make.user

As of Feb 2016, this patch is required to build libuv. Check this julia issue for updates.

diff --git a/deps/Makefile b/deps/Makefile
index 051b23d..08b9d97 100644
--- a/deps/Makefile
+++ b/deps/Makefile
@@ -751,7 +751,7 @@ $(LIBUV_SRC_DIR)/config.status: $(LIBUV_SRC_DIR)/configure
        touch -c $(LIBUV_SRC_DIR)/Makefile.in
        touch -c $(LIBUV_SRC_DIR)/configure
        cd $(LIBUV_SRC_DIR) && \
-       ./configure --with-pic $(CONFIGURE_COMMON) $(UV_FLAGS)
+       ./configure --with-pic --disable-dtrace $(CONFIGURE_COMMON) $(UV_FLAGS)
        touch -c $@
 $(UV_SRC_TARGET): $(LIBUV_SRC_DIR)/config.status
        $(MAKE) -C $(LIBUV_SRC_DIR) $(UV_MFLAGS)

Build

make -j8

Add the build directory to your path, i.e.

export PATH=$HOME/julia:$PATH
Clone this wiki locally