search for: omp_num_threads

Displaying 20 results from an estimated 20 matches for "omp_num_threads".

2016 Aug 01
2
R, OpenBLAS and OMP_NUM_THREEADS
...ngle (or at least, << NUM_CPUS) threaded operation? Using R 3.3.1 (both in debian unstable or using the CRAN repository for xenial) with OpenBLAS (0.2.18) defaults to using one thread per available CPU, which isn't ideal for machines more than a couple of CPUs. Setting the environment (OMP_NUM_THREADS or OPENBLAS_NUM_THREADS) in the shell works: $ OMP_NUM_THREADS=1 R > Sys.getenv("OMP_NUM_THREADS") [1] "1" > system.time({x <- replicate(5e3, rnorm(5e3)); tcrossprod(x) }) [runs in one thread] but adding it to /etc/R/Renviron.site doesn't: $ R > Sys.getenv(&qu...
2016 Aug 03
2
R, OpenBLAS and OMP_NUM_THREADS
On 02/08/16 03:10, Ei-ji Nakama wrote: > Hi, > > Create /etc/profile.d/openblas.sh. > Write the following during in this file. > OPENBLAS_NUM_THREADS = 1 > export OPENBLAS_NUM_THREADS > > OPENBLAS_NUM_THREADS environment variable does not affect the OMP_NUM_THREADS. > Thanks for the response. This works fine for R run from the command line (as does setting the same variable in `/etc/environment`), providing a fresh login is made. Unfortunately neither this nor anything else I've tried today appears to set the variable for sessions started through...
2016 Aug 04
1
R, OpenBLAS and OMP_NUM_THREADS
...a wrote: > | > Hi, > | > > | > Create /etc/profile.d/openblas.sh. > | > Write the following during in this file. > | > OPENBLAS_NUM_THREADS = 1 > | > export OPENBLAS_NUM_THREADS > | > > | > OPENBLAS_NUM_THREADS environment variable does not affect the OMP_NUM_THREADS. > > Thumbs up to using /etc/profile.d/ -- very nice hook. > > | Unfortunately neither this nor anything else I've tried today appears to > | set the variable for sessions started through RStudio server (which may > | or may not be an appropriate issue here). > | > | It...
2016 Aug 02
0
R, OpenBLAS and OMP_NUM_THREEADS
Hi, Create /etc/profile.d/openblas.sh. Write the following during in this file. OPENBLAS_NUM_THREADS = 1 export OPENBLAS_NUM_THREADS OPENBLAS_NUM_THREADS environment variable does not affect the OMP_NUM_THREADS. 2016-08-01 20:06 GMT+09:00 Gordon Ball <gordon at chronitis.net>: > What is the correct way to globally configure R to default to single (or > at least, << NUM_CPUS) threaded operation? > > > Using R 3.3.1 (both in debian unstable or using the CRAN repository for >...
2016 Aug 03
0
R, OpenBLAS and OMP_NUM_THREADS
...rote: | On 02/08/16 03:10, Ei-ji Nakama wrote: | > Hi, | > | > Create /etc/profile.d/openblas.sh. | > Write the following during in this file. | > OPENBLAS_NUM_THREADS = 1 | > export OPENBLAS_NUM_THREADS | > | > OPENBLAS_NUM_THREADS environment variable does not affect the OMP_NUM_THREADS. Thumbs up to using /etc/profile.d/ -- very nice hook. | Unfortunately neither this nor anything else I've tried today appears to | set the variable for sessions started through RStudio server (which may | or may not be an appropriate issue here). | | It appears that the rstudio server spawn...
2010 Jul 10
1
Set the number of threads using openmp with .C
...tion(n){.C("hello_omp",as.integer(n))} hello_omp(3) hello_omp(2) Only 1 thread is been used, instead of 3 and 2: > hello_omp(3) Hello World from thread 0 There are 1 threads [[1]] [1] 3 > hello_omp(2) Hello World from thread 0 There are 1 threads [[1]] [1] 2 I also tried to set OMP_NUM_THREADS=3 in the Konsole with "export OMP_NUM_THREADS=3", in the .c file directory, but it seems that R don't recognize it when calls .C I am using R version 2.10.1 in Ubuntu 9.10 - Karmic Koala, but i'm newbie in Linux. Thanks a lot in advance for your help !* * [[alternative HTML ve...
2008 Jul 07
2
GSoC - Theora multithread decoder
...http://lampiao.lsc.ic.unicamp.br/%7Epiga/gsoc_2008/implementation.pdf>) the decoding time should be reduced in 33%, but it was just 10% for pthread an 5% for openMP. I used a video with 1440x1080. The pthread implementation has 3 threads and the OpenMP was executed with the environment variable OMP_NUM_THREADS=3. The results are: Real(s) User(s) System(s) Speed up(%) OpenMP 25.2 29.2 1.8 4 PThread 23.8 28.3 1.0 10 Current 26.2 26.0 0.3 0 I used an Intel(...
2013 Jan 14
1
ginv / LAPACK-SVD causes R to segfault on a large matrix.
...*** address 0x7f092cc46e40, cause 'invalid permissions' Traceback: 1: La.svd(x, nu, nv) 2: svd(X) 3: ginv(bigmatrix) Here is the code that I run: require(MASS) l=30000 w=30000 x=rpois(l*w,0.00126) bigmatrix=matrix(x,nrow=l,ncol=w) inverted=ginv(bigmatrix) I have tried this both with OMP_NUM_THREADS=1 and greater than 1, and the resulting is always a segfault. The max memory used in around 40G. I am running this on a machine with 128Gb of RAM. I have also done tests with 15,000x15,000 matrices, and they do not cause any segfaults, so I think the problem is related to the size of the input to t...
2011 Nov 10
2
parallel BLAS for Ubuntu 11.10
Has anyone succeeded in getting a parallel BLAS, such as Goto's BLAS, installed on a machine running Ubuntu 11.10? I currently have the libatlas3gf-base package installed on a machine with an AMD Athlon X4 processor. I tried to install the libopenblas-base and libopenblas-dev packages but there seemed to be a glich related to having both libopenblas and libatlas3gf installed so that when I
2010 Feb 03
1
ctrl-C aborts R when compiling package code with ICC+openMP
Hi all, I have some C++ code that I call from my package. In my main C++ loop, I check for user interrupts and return to the R shell after ensuring I've deallocated memory appropriately. This works fine when the code is compiled with gcc+openmp and with icc without openmp, but when I compile with icc and use openmp, the entire R session is immediately terminated when I hit ctrl-C. This
2013 Mar 03
0
[LLVMdev] AESOP autoparallelizing compiler
----- Original Message ----- > From: "Timothy Mattausch Creech" <tcreech at umd.edu> > To: "Sebastian Dreßler" <dressler at zib.de> > Cc: "Aparna Kotha" <akotha at umd.edu>, llvmdev at cs.uiuc.edu > Sent: Sunday, March 3, 2013 11:32:49 AM > Subject: Re: [LLVMdev] AESOP autoparallelizing compiler > > Hi Sebastian, > Sure!
2019 Feb 02
1
Set the number of threads using openmp with .Fortran?
I got this to work on Linux but it is not working on Windows. *My understanding is that this should also work on windows, is that correct?* If so, what should I do? differently? To get it to work on Linux, I modified my R script as follows: #' OpenMP Hello World #' #' @param nthreads The number of threads that you want to use #' @example #' hello(nthreads=2) #' @export
2013 Mar 03
3
[LLVMdev] AESOP autoparallelizing compiler
Hi Sebastian, Sure! The bulk of LMDA was written by Aparna Kotha (CCd). It computes dependences between all instructions, computes the resulting direction vectors in the function, then associates them all with loops. At a high level, the dependence analysis consults with AliasAnalysis, and ScalarEvolution before resorting to attempting to understand the effective affine expressions and
2013 Jul 20
7
Failure to Launch (was override -q option)
Attached is the very verbose ssh output. Just to be perverse, this time two nodes lost connectivity. The only thing I see is lines saying that the two connections are lost, although being honest I have no idea what everything else means. For reference, 8 ssh cinnections were being made at the same time for a 8x8mpi task. N.B., since the OS I am using does not have rsh, I am currently using the
2017 Aug 21
3
Control multi-threading in standard matrix product
Dear R Core Team, I wish to report what can be viewed as a bug or at least a strange behavior in R-3.4.1. I ask my question here (as recommended on https://www.r-project.org/bugs.html) since I am not member of the R's Bugzilla. When running 'R --vanilla' from the command line, the standard matrix product is by default based on BLAS and multi-threaded on all cores available on
2012 Oct 02
0
[LLVMdev] [RFC] OpenMP Representation in LLVM IR
...; > Clause | MDString in Metadata > ------------------------------------------------------------ > if(scalar_expr) | OMP_IF > ------------------------------------------------------------ > num_threads(integer_expr) | OMP_NUM_THREADS > ------------------------------------------------------------ > final(scalar_expr) | OMP_FINAL > ------------------------------------------------------------ > collapse(const_integer_expr) | OMP_COLLAPSE > > Here is an example of OpenMP clause with a...
2012 Sep 28
11
[LLVMdev] [RFC] OpenMP Representation in LLVM IR
...ar or Integer Expressions Clause | MDString in Metadata ------------------------------------------------------------ if(scalar_expr) | OMP_IF ------------------------------------------------------------ num_threads(integer_expr) | OMP_NUM_THREADS ------------------------------------------------------------ final(scalar_expr) | OMP_FINAL ------------------------------------------------------------ collapse(const_integer_expr) | OMP_COLLAPSE Here is an example of OpenMP clause with a scalar expression and its re...
2012 Oct 03
0
[LLVMdev] [RFC] OpenMP Representation in LLVM IR
...> Clause | MDString in Metadata > ------------------------------------------------------------ > if(scalar_expr) | OMP_IF > ------------------------------------------------------------ > num_threads(integer_expr) | OMP_NUM_THREADS > ------------------------------------------------------------ > final(scalar_expr) | OMP_FINAL > ------------------------------------------------------------ > collapse(const_integer_expr) | OMP_COLLAPSE > > Here is an example of OpenMP clause with...
2012 Sep 28
0
[LLVMdev] [RFC] OpenMP Representation in LLVM IR
...> Clause | MDString in Metadata > ------------------------------------------------------------ > if(scalar_expr) | OMP_IF > ------------------------------------------------------------ > num_threads(integer_expr) | OMP_NUM_THREADS > ------------------------------------------------------------ > final(scalar_expr) | OMP_FINAL > ------------------------------------------------------------ > collapse(const_integer_expr) | OMP_COLLAPSE > > Here is an example of OpenMP clause with...
2015 Apr 30
17
[LLVMdev] libiomp, not libgomp as default library linked with -fopenmp
All, I'd like to resurrect the discussion on replacing libgomp with libiomp as the default OpenMP runtime library linked with -fopenmp. For reference, the previous discussion is accessible there: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140217/thread.html#99461 We are very close to getting *full* OpenMP 3.1 specification supported in clang (only one (!) clause is not