Install Magma + MKL + CUDA 6 on OSX Mavericks

Open discussion for MAGMA

Install Magma + MKL + CUDA 6 on OSX Mavericks

Postby fraimondo » Thu Mar 20, 2014 10:09 am

I've just wanted to let you know everything I did to build magma on OSX Mavericks using Intel MKL + CUDA 6

  1. Install requirements:
    • Xcode
    • Intel C++ Composer XE SP1 (It's important to get SP1 version since older versions won't work with Xcode for OSX Mavericks)
    • Intel Fortran Composer XE SP1
    • CUDA 6.0 RC
  2. Copy make.inc.mkl-icc into make.inc
  3. Edit the following:
    Code: Select all
    NVCC      = /usr/local/cuda/bin/nvcc
    OPTS      = -O3 -DADD_ -Wall -openmp -DMAGMA_WITH_MKL
    FOPTS     = -O3 -DADD_ -warn all -fpp

    MKLROOT ?= /opt/intel/composerxe/mkl
    CUDADIR ?= /usr/local/cuda

    LIBDIR    = -L$(MKLROOT)/lib \
                -L$(CUDADIR)/lib

  4. Build:
    Code: Select all
    DYLD_LIBRARY_PATH=/opt/intel/lib make


    It's important to prepend DYLD_LIBRARY_PATH=/opt/intel/lib/ since otherwise ifort will fail with weird errors

I've just spent several hours trying to build magma in OSX 10.9.3. I thought it might help someone to write this on the forum.
fraimondo
 
Posts: 1
Joined: Thu Mar 20, 2014 9:51 am

Re: Install Magma + MKL + CUDA 6 on OSX Mavericks

Postby mgates3 » Thu Mar 20, 2014 12:27 pm

Thanks for sharing. We usually compile on MacOS using Apple's compiler and veclib, so this is helpful to know how to do it with Intel's compiler and MKL.
-mark
mgates3
 
Posts: 438
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron