Skip to content

Instantly share code, notes, and snippets.

@zkamvar
Created Jul 14, 2015
Embed
What would you like to do?
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