Skip to content

Instantly share code, notes, and snippets.

@csgillespie
Created September 26, 2017 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csgillespie/b0ddf5b54d806e8b3c02d236ebf5ecdf to your computer and use it in GitHub Desktop.
Save csgillespie/b0ddf5b54d806e8b3c02d236ebf5ecdf to your computer and use it in GitHub Desktop.
p_id = Sys.getpid()
cmd_mkl = paste("lsof -p", p_id, "| grep 'libmkl' | awk '{print $9}'")
out_mkl = try(system(cmd_mkl, intern = TRUE), silent = TRUE)
blas = out_mkl[grep("libmkl_core", out_mkl)]
lapack = out_mkl[grep("libmkl_intel_lp", out_mkl)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment