Skip to content

Instantly share code, notes, and snippets.

@zkamvar
Created July 14, 2015 20:54
Show Gist options
  • Save zkamvar/9a7c4b8251a0a662f214 to your computer and use it in GitHub Desktop.
Save zkamvar/9a7c4b8251a0a662f214 to your computer and use it in GitHub Desktop.
My R Makevars file to ensure that I build R packages with openmp
# This file's location is ~/.R/Makevars
# Default variables (no omp support):
# CXX=clang++
# CC=clang
# I followed the instructions at http://hpc.sourceforge.net/ to install gcc 4.9
CC=/usr/local/bin/gcc
CXX=/usr/local/bin/g++
FC=/usr/local/bin/gfortran
F77=/usr/local/bin/gfortran
PKG_LIBS = -fopenmp -lgomp
PKG_CFLAGS= -O3 -Wall -pipe -pedantic -std=gnu99 -fopenmp
CFLAGS= -O3 -Wall -pipe -pedantic -std=gnu99 -fopenmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment