Displaying 20 results from an estimated 100 matches similar to: "Error in .local(x, ...) invalid layer names"
2019 Feb 01
2
Set the number of threads using openmp with .Fortran?
Hi everybody,
I'm trying to develop an R package with Fortran and OpenMP. I wrote a
simple hello world but I'm not able to set the number of threads. I found this
old email chain
<http://r.789695.n4.nabble.com/Set-the-number-of-threads-using-openmp-with-C-td2284685.html>
and
I tried to set my compile instructions accordingly but i had no luck.
*This is my makevars:*
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
2014 Apr 18
4
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
On Apr 17, 2014, at 2:04 PM, Chandler Carruth <chandlerc at google.com> wrote:
> On Thu, Apr 17, 2014 at 1:27 PM, Justin Bogner <mail at justinbogner.com> wrote:
> Chandler Carruth <chandlerc at google.com> writes:
> > if (thread-ID != main's thread-ID && shard_count < std::min(MAX, NUMBER_OF_CORES)) {
> > shard_count = std::min(MAX,
2014 Apr 18
2
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
On Fri, Apr 18, 2014 at 11:13 AM, Dmitry Vyukov <dvyukov at google.com> wrote:
> Hi,
>
> This is long thread, so I will combine several comments into single email.
>
>
> >> - 8-bit per-thread counters, dumping into central counters on overflow.
> >The overflow will happen very quickly with 8bit counter.
>
> Yes, but it reduces contention by 256x (a thread
2015 May 11
1
Foreach %dopar% operator incorrectly load balancing
Dear R-SIG-Debian,
I am using R version 3.1.2 with rstudio-server 0.98.113 on debian build
3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64 GNU/Linux.
I often use the %dopar% operator in from the foreach package to run code in
parallel. However, the only other use on the box seemingly installed a few
items and suddenly %dopar% will use far more than the number of cores I am
specifying and
2014 Aug 07
2
How to (appropropriately) use require in a package?
Dear All,
What is the preferred way for Package A, to initialize a cluster, and load
Package B on all nodes?
I am writing a package that parallelizes some functions through the use of
a cluster if useRs are on a Windows machine (using parLapply and family).
I also make use of another package in some of my code, so it is necessary
to load the required packages on each slave once the cluster is
2014 Apr 18
2
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
On Fri, Apr 18, 2014 at 11:44 AM, Dmitry Vyukov <dvyukov at google.com> wrote:
> On Fri, Apr 18, 2014 at 11:32 AM, Dmitry Vyukov <dvyukov at google.com>wrote:
>
>> On Fri, Apr 18, 2014 at 11:13 AM, Dmitry Vyukov <dvyukov at google.com>wrote:
>>
>>> Hi,
>>>
>>> This is long thread, so I will combine several comments into single
2019 Feb 02
0
Set the number of threads using openmp with .Fortran?
I was able to make some progress by using this
<https://github.com/bert9bert/ParallelForest/blob/master/src/Makevars> as a
reference. Now:
*This is my makevars:*
##### Compiler flags #####
PKG_FCFLAGS = $(SHLIB_OPENMP_FFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CFLAGS)
##### Phony target for R's build system to invoke #####
all: $(SHLIB)
##### Clean target #####
clean:
rm -f *.o *.mod
2013 Apr 18
1
snow: cluster initialization
Dear all,
I found a strange thing with the snow package.
This will work:
y = matrix(1:4, 2)
cl = makeCluster(rep('localhost', 8), type='SOCK')
parMM(cl, y, y)
This will not:
y = matrix(1:4, 2)
ncore = system('nproc')
parMM(cl, y, y)
Error in cut.default(i, breaks) : invalid number of intervals
I also tried:
cl = makeCluster(rep('localhost', ncore),
2004 Jul 07
2
Net rpc user add and the "-F" flag.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello, all !
I'm trying to add users to my NT domain from my samba servers (This to
create all my accounts with only a single script, I do not want to create
them on the PDC, then create their folders on the samba file server with
another...)
I managed to create account with "net rpc user add", then put them in the
right domain
2010 Nov 05
1
Una guía de estilo para programar en R...
Hola,
He seguido con interés el mensaje de Carlos sobre la guía de estilo para
programar en R aparecida en Google y las reacciones que ha generado.
En líneas generales creo que la guía Google es bastante floja, estoy de
acuerdo con la mayoría de comentarios iniciales de Carlos y en particular
con el hecho de que no trata en absoluto (ni lógicamente promueve) la
creación de packages. Otro
2016 Jan 27
2
Bootstrap data frame (Jesús Para Fernández)
Hola Jesús,
Si no entiendo mal lo que planteas, has observado unas frecuencias
N = c(12, 0, 8, 6, 4, 2)
de pedidos acaecidos en 1:6 días, en total
n = sum(N)
pedidos. Llamemos P = (p1, p2, ?, p6) a las probabilidades ?teóricas? de pedido en cada día. En principio el vector N se puede considerar una realización de una distribución multinomial M(n; p1, ?, p6).
P se puede estimar mediante las
2015 Jul 18
1
[PATCH 1/2] xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb
xfs_is_valid_magicnum is not actually a generic function that checks for
magic numbers, instead it checks only for superblock's one.
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>
---
core/fs/xfs/xfs.c | 13 +++++--------
core/fs/xfs/xfs.h | 19 ++++++++++---------
2 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index
2010 Jun 01
0
Curso de Friedrich Leisch, creador de Sweave, en Barcelona
Estimados/as miembros de la lista,
Tenemos el placer de anunciar que del día 28 de junio al día 1 de julio de
2010 se impartirá en Barcelona un curso de creación de librerías R (junto
con algún otro tema, incluyendo Sweave) a cargo de Friedrich Leisch, autor
de Sweave. El curso se impartirá en inglés. Los detalles sobre el mismo se
pueden consultar en
2016 Jan 27
3
Bootstrap data frame
Hola buenas
En principio a mí no me parece una mala aproximación. Tal vez se podría
intentar adaptar el problema a un modelo de supervivencia, pero tendría que
pensarlo. ( https://vimeo.com/142732615 )
De todas maneras, creo que coges días al azar para calcular to "proxy".
Aunque yo personalmente cogería días consecutivos porque probablemente el
consumo en muchos productos no sea
2013 Jan 29
0
Package parallel left orphan processes, how to clean-up?
Hi,
I've using package DEXSeq that implements functions with nCores for
speed-up. The functions work fine, but I found out that the children
processes were not terminated, they still hold memory, and new command
will start up new children processes. So if I don't manually kill those
orphan processes, they will cause problem. I was qlogin to SGE cluster
node to run R. From our
2015 Jun 01
2
Mi script R es muy lento
Hola Carlos,
bueno la verdad es que mi pregunta era algo general, cuando no has usado
data.table no parece muy intuitivo pasar de la forma de programar a la que
estás más acostumbrado (bucles, notación matricial...) a esa otra. Aun no
tengo un cálculo complejo concreto pero lo tendré que hacer... solo quería
saber si se puede, y parece que sí, asi que será cuestión de empaparse un
poco de
2005 Apr 13
2
Can't setup Windows Print Driver on Samba 3 Server
Hi,
I'm trying to store a windows print driver on a samba 3 server (which is
sharing a pseudo PDF printer) so that windows users in the domain can
automatically have it installed (rather than having to choose a driver
from their computer manually). I've tried the methods outlined in the
samba howto but I can't get either of them to work. The one where you
use a windows machine to
2017 Mar 16
6
Pregunta (debate) sobre licencia R
Hola buenos días, una pregunta que quiero realizar de R sobre el tema de la licencia y que me inquieta un poco, a ver si alguien me la puede responder de un modo suficientemente claro o referirme a algún sitio donde informarme porque yo por el momento estoy un poco liado.
Imaginemos el siguiente ejemplo. Una empresa crea un software totalmente basado en R para comercializarlo o alguien realiza
2011 Jan 07
6
Evaluar función?
Hola a todos!
Soy un novato con R y, como suele pasar, tengo algunas dudas que me gustaría
compartir con vosotros. Antes de nada decir que llevo muchas horas buscando
información y peleándome con los manuales, tanto en inglés como en español,
pero no sé como resolver mi problema que es el siguiente:
¿Cómo puedo hacer para crear un programa con el que, al darle una función y
un punto, me diga que