Parallel detectCores() giving incorrect output on a Virtual machine

PatraoPedro

I'm just doing some performance testing on a new laptop. My problem starts when I tried to test it on parallel computing.

So, when I run the function detectCores() from parallel the result is 1. The problem is that the laptop has an i7- 4800MQ processor which as 4 cores. As a result when I run my code it thinks that it has only one core and the time to execute the code is exactly the same as without the parallelization.

I’ve tested the code in a different machine with an i5 processor also with 4 cores using the same R version (R 3.0.2 64 bits) and the code runs perfectly. The only difference is that the new computer as installed windows 8.1 while the old one has windows 7 Also, when I run Sys.getenv(“NUMBER_OF_PROCESSORS”) I also get 1 as an answer.

I've search the internet looking for an answer with no joy. As anyone came across this problem before?

Manny thanks

SilverSurfer

Make sure you are loading the parallel package before running detectCores(). I also have an i-7 processor (Windows 8.1, 64 Bit) and I am able to see as 8 cores when I run detectCores(logical = TRUE) and I get 4 when I run detectCores(logical = FALSE). For more, kindly refer this link. HTH

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

NSDateFormatter giving incorrect output with am/ pm

분류에서Dev

Heapify is giving me an incorrect output for a min-heap

분류에서Dev

SSH to a virtual machine

분류에서Dev

Host Website On Virtual Machine

분류에서Dev

Incorrect output using strcmp

분류에서Dev

Recursive BubbleSort giving wrong output

분류에서Dev

Zoom in and out in Virtual Machine (Windows)

분류에서Dev

Incorrect output from while loop

분류에서Dev

Checking for repeated characters not giving me the desired output

분류에서Dev

Hive's RegexSerDe not giving the correct output

분류에서Dev

java double number division giving strange output

분류에서Dev

How to improve Graphics in Virtual Machine VirtualBox?

분류에서Dev

Oracle Java Virtual Machine 설치?

분류에서Dev

Port Forwarding to a VMware Workstation Virtual Machine

분류에서Dev

windows azure rest api - creating a virtual machine

분류에서Dev

Linux Virtual Machine runs Slow depending on the Network

분류에서Dev

Oracle Java Virtual Machine 설치?

분류에서Dev

Java Virtual Machine Heap Tuning Parameters

분류에서Dev

Is it possible to “SSH” into my virtual machine remotely?

분류에서Dev

How to share a VirtualBox virtual machine with users of the computer

분류에서Dev

can we assume interpreter as a virtual machine?

분류에서Dev

Integrated Security Windows Azure Virtual Machine

분류에서Dev

Find a Windows 10 ISO to install it in a virtual machine

분류에서Dev

How to access shared host files on virtual machine?

분류에서Dev

Virtual Machine Manager 연결 실패

분류에서Dev

Getting infected by inserting an ISO to a virtual machine?

분류에서Dev

NanoVM Java Virtual Machine 컴파일

분류에서Dev

create a virtual machine from the CLI? (KVM)

분류에서Dev

compiz high resource utilization in virtual machine

Related 관련 기사

뜨겁다태그

보관