search for: ncpus

Displaying 20 results from an estimated 61 matches for "ncpus".

Did you mean: cpus
2012 Oct 06
1
Problems with install.packages when Ncpus > 1
I have a Ubuntu Linux 12.04.1 machine running R 2.15.1. I'm trying to run tests building packages, so install.packages() is trying to install about about 1000 packages from source. I'm running into some strange issues that seem related to using values for Ncpus other than 1. When I use Ncpus=32, about 260 of the packages fail to install. When I tried again with Ncpus=2, more of them get installed, and there were only 234 failed packages. I tried it again with Ncpus=1, after which there were only 142 failed packages. (I think these remaining failed packag...
2017 Sep 15
2
How to add make option to package compilation?
...4 cpus and most of the packages are written in >> C/C++. >> >> So is it possible to add a -j4 flag to the make command when I use the >> install.packages() function? >> That will probably speed up the package installation process 390%. >> > > See the Ncpus argument in ?install.packages. Thanks. However it looks like Ncpus=4 tries to compile four R packages at the same time using one cpu for each packages. From the documentation: " Ncpus: the number of parallel processes to use for a parallel install of more than one source packa...
2015 Oct 26
3
[kvm-unit-tests PATCH] x86: hyperv_synic: Hyper-V SynIC test
...i); + wrmsr(HV_X64_MSR_SINT0 + i, 0xFF|HV_SYNIC_SINT_MASKED); + } + + wrmsr(HV_X64_MSR_SCONTROL, 0); + wrmsr(HV_X64_MSR_SIMP, 0); + wrmsr(HV_X64_MSR_SIEFP, 0); + atomic_inc(&cpus_comp_count); +} + +int main(int ac, char **av) +{ + + if (synic_supported()) { + int ncpus, i; + + setup_vm(); + smp_init(); + setup_idt(); + enable_apic(); + + synic_prepare_sint_vecs(); + + ncpus = cpu_count(); + if (ncpus > MAX_CPUS) { + ncpus = MAX_CPUS; + } + printf("ncpus = %d\n", ncpus); + +...
2015 Oct 26
3
[kvm-unit-tests PATCH] x86: hyperv_synic: Hyper-V SynIC test
...i); + wrmsr(HV_X64_MSR_SINT0 + i, 0xFF|HV_SYNIC_SINT_MASKED); + } + + wrmsr(HV_X64_MSR_SCONTROL, 0); + wrmsr(HV_X64_MSR_SIMP, 0); + wrmsr(HV_X64_MSR_SIEFP, 0); + atomic_inc(&cpus_comp_count); +} + +int main(int ac, char **av) +{ + + if (synic_supported()) { + int ncpus, i; + + setup_vm(); + smp_init(); + setup_idt(); + enable_apic(); + + synic_prepare_sint_vecs(); + + ncpus = cpu_count(); + if (ncpus > MAX_CPUS) { + ncpus = MAX_CPUS; + } + printf("ncpus = %d\n", ncpus); + +...
2015 Nov 02
0
[kvm-unit-tests PATCH] x86: hyperv_synic: Hyper-V SynIC test
...D); > + } > + > + wrmsr(HV_X64_MSR_SCONTROL, 0); > + wrmsr(HV_X64_MSR_SIMP, 0); > + wrmsr(HV_X64_MSR_SIEFP, 0); > + atomic_inc(&cpus_comp_count); > +} > + > +int main(int ac, char **av) > +{ > + > + if (synic_supported()) { > + int ncpus, i; > + > + setup_vm(); > + smp_init(); > + setup_idt(); > + enable_apic(); > + > + synic_prepare_sint_vecs(); > + > + ncpus = cpu_count(); > + if (ncpus > MAX_CPUS) { > + ncpus = MAX_CPUS; > +...
2017 Sep 15
0
How to add make option to package compilation?
...re written in >>> C/C++. >>> >>> So is it possible to add a -j4 flag to the make command when I use the >>> install.packages() function? >>> That will probably speed up the package installation process 390%. >>> >> >> See the Ncpus argument in ?install.packages. > > > Thanks. > > However it looks like Ncpus=4 tries to compile four R packages at the same > time using one cpu for each packages. > But you said you had lots to install so would that not speed things up too? > From the documentation:...
2012 Aug 02
1
help with install.packages
...internal, available = NULL, destdir = ${DEST}, dependencies = NA, type = getOption("pkgType"), configure.args = getOption("configure.args"), configure.vars = getOption("configure.vars"), clean = FALSE, Ncpus = getOption("2", 1L), libs_only = FALSE, INSTALL_opts,--verbose) and this is the result stats [ ~ ]# export DIR=/home/stats/R-2.15.0_runTEST190712A stats [ ~ ]# export DEST=/home/stats/Rtester stats [ ~ ]# cd $DEST stats [ ~/Rtester ]# stats [ ~/Rtester ]# ${DIR}/bin/R...
2017 Sep 15
2
How to add make option to package compilation?
Hi, I am installing a lot of packages to a new R installation and it takes a long time. However the machine got 4 cpus and most of the packages are written in C/C++. So is it possible to add a -j4 flag to the make command when I use the install.packages() function? That will probably speed up the package installation process 390%. Regards Martin M. S. Pedersen [[alternative HTML
2017 Sep 15
0
How to add make option to package compilation?
...time. > However the machine got 4 cpus and most of the packages are written in > C/C++. > > So is it possible to add a -j4 flag to the make command when I use the > install.packages() function? > That will probably speed up the package installation process 390%. See the Ncpus argument in ?install.packages. Duncan Murdoch
2023 May 10
1
Windows Guest on KVM running "single core" after windows update
...mmin2068 wrote: > I will say one thing that I noticed is: when giving the guest 8 cores > and not setting the topology, windows device manager shows 8 CPUs but > the task manager only shows 2. Feh. Windows. Historically, if you did NOT specify topology then QEMU would defaults to sockets==nCPUs, cores==1, threads=1. Since QEMU 6.2, new machine types for x86 will prefer cores, IOW, if you don't specify topology then QEMU would give you sockets=1, cores=nCPUs, threads=1 The rationale for this is that it matches common physical hardware. It is rare to see an x86 machine with 32 sockets...
2011 Sep 01
4
[PATCH] xen,credit1: Add variable timeslice
...unsigned credits_per_tslice; }; static void csched_tick(void *_cpu); @@ -326,7 +325,7 @@ csched_free_pdata(const struct scheduler spin_lock_irqsave(&prv->lock, flags); - prv->credit -= CSCHED_CREDITS_PER_ACCT; + prv->credit -= prv->credits_per_tslice; prv->ncpus--; cpu_clear(cpu, prv->idlers); cpu_clear(cpu, prv->cpus); @@ -360,19 +359,19 @@ csched_alloc_pdata(const struct schedule spin_lock_irqsave(&prv->lock, flags); /* Initialize/update system-wide config */ - prv->credit += CSCHED_CREDITS_PER_ACCT; + prv->...
2016 Feb 25
0
Building with LLVM_PARALLEL_XXX_JOBS
...compile job, which is again a facility that ninja has. > If this is a fact, can you please adjust the information in [1]? > > Do I have other options to speedup my build? Yes: start to use ninja ;) If for any reason (?) you are really stuck with "make", then run "make -j ~ncpus" (with ~ncpus "approximately the number of cores in your machine). It will build in parallel. -- Mehdi > ( For testing RCs I tend to use slow build - one single (c)make job. ) > > My build-script and configure-log are attached. > > Thanks. > > Regards, > -...
2018 Aug 17
2
Get Logical processor count correctly whether NUMA is enabled or disabled
Dear R-devel list, R's detectCores() function internally calls "ncpus" function to get the total number of logical processors. However, this doesnot seem to take NUMA into account on Windows machines. On a machine having 48 processors (24 cores) in total and windows server 2012 installed, if NUMA is enabled and has 2 nodes (node 0 and node 1 each having 24 CPUs...
2002 Jan 17
0
[Bug 71] New: configure is looking for zlib but I don't have one and I can't turn zlib off.
...the configure stage. Configure seems to be looking for zlib and fails even when I specify --without-zlib or --disable-zlib. I'm enclosing the build log as part of this bug report. Regards and THANKS for the cool software. George... cat bld.log1 #!/bin/sh -xv if [ $# = 0 ] then ncpus=1 else ncpus=$1 fi + [ 0 = 0 ] ncpus=1 sysver=`uname -s` + uname -s sysver=SunOS syslvl=`uname -r` + uname -r syslvl=5.8 osname=$sysver.$syslvl osname=SunOS.5.8 case $osname in SunOS.5.5) osname="$sysver.5.5" ;; SunOS.5.5.1) osname="$sysve...
2016 Feb 25
0
Building with LLVM_PARALLEL_XXX_JOBS
...t;> >>> If this is a fact, can you please adjust the information in [1]? >>> >>> Do I have other options to speedup my build? >> >> Yes: start to use ninja ;) >> If for any reason (?) you are really stuck with "make", then run "make -j ~ncpus" (with ~ncpus "approximately the number of cores in your machine). It will build in parallel. >> > > So, I like NinjaS but I have not used it yet as software. > > From my build-script... > > [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR} > cd $BUILD_DIR > >...
2016 Feb 25
4
Building with LLVM_PARALLEL_XXX_JOBS
...facility that ninja has. > >> If this is a fact, can you please adjust the information in [1]? >> >> Do I have other options to speedup my build? > > Yes: start to use ninja ;) > If for any reason (?) you are really stuck with "make", then run "make -j ~ncpus" (with ~ncpus "approximately the number of cores in your machine). It will build in parallel. > So, I like NinjaS but I have not used it yet as software. >From my build-script... [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR} cd $BUILD_DIR # BUILD-VARIANT #1: CONFIGURE AND MAKE (w...
2017 Feb 24
0
BUG: the quiet option in the install.packages function
...method, available = NULL, destdir = NULL, dependencies = NA, type = getOption("pkgType"), configure.args = getOption("configure.args"), configure.vars = getOption("configure.vars"), clean = FALSE, Ncpus = getOption("Ncpus", 1L), verbose = getOption("verbose"), libs_only = FALSE, INSTALL_opts, quiet = FALSE, keep_outputs = FALSE, ...) ... Arguments to be passed to download.file or to the functions for binary installs on OS X an...
2018 Aug 21
2
Get Logical processor count correctly whether NUMA is enabled or disabled
...[0-9]+[ \t]*", out, value=TRUE)))) # number of physical processors - as a sanity check system("wmic computersystem get numberofprocessors") Thanks, Tomas On 08/17/2018 05:11 PM, Srinivasan, Arunkumar wrote: Dear R-devel list, R's detectCores() function internally calls "ncpus" function to get the total number of logical processors. However, this doesnot seem to take NUMA into account on Windows machines. On a machine having 48 processors (24 cores) in total and windows server 2012 installed, if NUMA is enabled and has 2 nodes (node 0 and node 1 each having 24 CPUs...
2018 Aug 21
0
Get Logical processor count correctly whether NUMA is enabled or disabled
...ot;, out, value=TRUE)))) # number of physical processors - as a sanity check system("wmic computersystem get numberofprocessors") Thanks, Tomas On 08/17/2018 05:11 PM, Srinivasan, Arunkumar wrote: > Dear R-devel list, > > R's detectCores() function internally calls "ncpus" function to get the total number of logical processors. However, this doesnot seem to take NUMA into account on Windows machines. > > On a machine having 48 processors (24 cores) in total and windows server 2012 installed, if NUMA is enabled and has 2 nodes (node 0 and node 1 each havin...
2010 Oct 11
1
running R script on linux server
Hi R-users, I have a problem running my R code on a Linux cluster. What I did was write a .pbs file to instruct the cluster on what to do and how: #!/bin/sh #PBS -m ae #PBS -M uqlcatta@uq.edu.au #PBS -A uq-CSER #PBS -N job1_lollo #PBS -l select=1:ncpus=1:NodeType=fast:mem=8GB #PBS -l walltime=999:00:00 cd $PBS_O_WORKDIR source /usr/share/modules/init/bash module load R/2.11.1 /home/uqlcatta/script/diag.sh The .pbs file calls a .sh file, which is located on my home directory on the cluster, and which contains the R script (...