Install Magma + MKL + CUDA 6 on OSX Mavericks

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

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 into
  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 \

  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.
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.
Posts: 782
Joined: Fri Jan 06, 2012 2:13 pm

Return to User discussion

Who is online

Users browsing this forum: No registered users and 2 guests