Quantcast
Channel: Intel Communities : All Content - General Questions
Viewing all 6470 articles
Browse latest View live

Accessing a 64-bit variable from different threads without synchronization or atomicity

$
0
0

I have two posix threads sharing an uint64_t global variable.

 

The first thread just reads from the variable while the other thread just writes into. If I don't synchronize the two threads using mutex/spinlock/atomic operations etc.., is there any possibility of reading another value from the writing thread wrote into? It is not important to read an old-value which was written by writing thread in the previous run.

 

As an example, the writing thread increases the variable between 0 and 100, and the reading thread prints the value. So, is there any possibility to see a value in the screen different than [0-100] range. Currently I don't see any different value but I'm not sure it can cause a race condition. Is there any possibility that a compiler maps the uint64_t variable in two different virtual pages or accessing the uint64_t variable in two different cycle.

 

Is 64-bit memory access always atomic?

 

 

Thanks in advance. 

 

- Volkan


Xeon-Phi vs. Xeon Unexplained Overhead

$
0
0

Hello all!

 

I am trying to run the following code with different n sizes on an Xeon Phi KNC (with 61 cores and 4T/C) and Xeon (with 2 sockets of Xeon E5-2660 v2).

 

I am getting the timings as shown in the tables below. However, I am trying to understand why MIC's preformance are poorer than running a Xeon processor. What am I doing wrong here, and how can I fix it (if possible)?

 

Thanks!

 

CODE:

 

program prog

  integer, allocatable :: arr1(:), arr2(:)

  integer :: i, n, time_start, time_end

  n=481

  do while (n .le. 481000000)

    allocate(arr1(n),arr2(n))

    call system_clock(time_start)

    !dir$ offload begin target(mic)

    !$omp SIMD

    do i=1,n

       arr1(i) = arr1(i) + arr2(i)

    end do

    !dir$ end offload

    call system_clock(time_end)

    write (,) "n=",n," time=",time_end-time_start

    deallocate(arr1,arr2)    

    n = n*10

  end do 

end program

 

Xeon-Phi RESULTS:

 

n=         481  time=        8881

n=        4810  time=          75

n=       48100  time=          53

n=      481000  time=         261

n=     4810000  time=        1991

n=    48100000  time=       18912

n=   481000000  time=      188203

 

Settings:

 

#!/bin/bash #SBATCH -N 1 #SBATCH -o out_122 #SBATCH --exclusive export MIC_KMP_AFFINITY=verbose,granularity=fine,scatter export MIC_OMP_NUM_THREADS=122 ./prog.exe

 

sbatch -p xphi -N 1 --exclusive run_par.sh

while all of the settings are in run_par.sh and xphi is the name of the device.

 

Its also worth mentioning that a native run (addition of !dir$ offload begin target(mic) before the !$omp SIMD) yields a much better results.

 

n= 481       time= 0

n= 4810      time= 0

n= 48100     time= 6

n= 481000    time= 55

n= 4810000   time= 455

n= 48100000  time= 4342

n= 481000000 time= 43322

 

In the native run rhe settings are:

 

#!/bin/bash #SBATCH -N 1 #SBATCH -o out_244_native #SBATCH --exclusive export SINK_LD_LIBRARY_PATH=...intel/compilers_and_libraries/linux/lib/mic:$SINK_LD_LIBRARY_PATH micnativeloadex ./prog.exe.MIC -e "KMP_AFFINITY=verbose,granularity=fine,scatter"

 

Xeon RESULTS:

 

n=         481         time=           0

n=        4810         time=           0

n=       48100         time=           2

n=      481000         time=          19

n=     4810000         time=          93

n=    48100000         time=         706

n=   481000000         time=        7006

 

Here is the output of lscpu command on my Xeon machine:

 

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                40

On-line CPU(s) list:   0-39

Thread(s) per core:    2

Core(s) per socket:    10

Socket(s):             2

NUMA node(s):          2

Vendor ID:             GenuineIntel

CPU family:            6

Model:                 62

Model name:            Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz

Stepping:              4

CPU MHz:               1203.382

BogoMIPS:              4405.99

Virtualization:        VT-x

L1d cache:             32K

L1i cache:             32K

L2 cache:              256K

L3 cache:              25600K

NUMA node0 CPU(s):     0-9,20-29

NUMA node1 CPU(s):     10-19,30-39

 

My MIC specs are (tail of /proc/cpuinfo):

 

processor       : 239

vendor_id       : GenuineIntel

cpu family      : 11

model           : 1

model name      : 0b/01

stepping        : 3

cpu MHz         : 1052.630

cache size      : 512 KB

physical id     : 0

siblings        : 240

core id         : 59

cpu cores       : 60

apicid          : 239

initial apicid  : 239

fpu             : yes

fpu_exception   : yes

cpuid level     : 4

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr mca pat fxsr htsyscall nx lm nopl lahf_lm

bogomips        : 2112.44

clflush size    : 64

cache_alignment : 64

address sizes   : 40 bits physical, 48 bits virtual

power management:

Bluetooth vamoosed

$
0
0

After the latest update (Windows driver V20.60.0), I no longer appear to have Bluetooth on my Gigabyte H97N-WIFI board.

Tried uninstalling/re-installing/going back a version but no signs of Ol' Blue

 

Saw others in the community had previously similar issues but no obvious resolution.

 

Any ideas or, ideally - fixes?

 

Cheers

N

Hi, Since Intel Edison and Curie module are discontinued, where I can find their schematics to reproduce these modules for mass production ?

$
0
0

Hi, Since Intel Edison and Curie module are discontinued, where I can find their schematics to reproduce these modules for mass production ? Where to find the schematics of these modules so we can reproduce them ?

How to install OPA HFI Driver using yum command on CentOS 7.4

$
0
0

Hi,

 

We are having about 20 servers powered by OPA HFI 100 Series and we want the OPA HFI driver to be installed in CentOS 7.4 post installation,

Hence Could you please provide the steps to install the OPA HFI driver using yum command.

 

Thank You

StarterPack.Intel Survey Not Working

$
0
0

Recently purchased an I7-7700k from Newegg and I received the Intel Gift with Assassin's Creed and Warhammer

 

Tried entering the code I was emailed on the site, it went through but it's stuck on a blue screen with a heading that says "1/0 Questions"

Starterpack/Survey Not working. Please help.

$
0
0

I've used multiple browsers to get this to work and it didn't work. I received an email from Intel saying I got a promotion from order my new CPU. And I got the promotional code and did the survey. But now it says 1/0 Questions. No email for the games that I have received or codes. Please help. In the email it said I earned a redemption code for Final Fantasy XV and Warhammer: Vermintide II.

Driver Assistant - Write Error!

$
0
0

Using Intel's Driver & Support Assistant 3.3.1.3 several times now I get a write error when trying to download my updates. This seems a similar issue to this thread but I have changed examined the settings in the local tray icon (bottom right) and it is (and always was) a local drive; so it's not the same issue as the closest thread.

 

Can anyone advise on how to install these updates? I am having issues with Thunderbolt USB-C. I have never managed to get it to work (computer does have USB Thunderbolt).

I have contacted Asus several times regarding this issue and they incapable.

 

Untitled.png


Slow speeds with Wireless-N 7260

$
0
0

Hello,

I am having very slow download speeds (6 Mbps) when I'm connected to the wireless router.  When I'm connected directly to the modem, I get speeds around 65 Mbps.  My wife's computer, however, gets speeds around 45 Mbps when it is connected to the internet.  I've looked online for other help, but haven't been able to find anything.  I have Windows 10 on a Dell Inspiron 7437.  Thanks!

data migration software error

$
0
0

"This product edition requires at least one Intel SSD drive be installed in your system"

 

I have installed a new SSD 5 to SATA port 3 and it is cofirmed as "Intel SSD" in the device manager.

 

Why wont the Intel Data Migration Software launch?

Matrix multiplication

$
0
0

Hi,I have to compute an element-by-element multiplication of two matrices A
and B. The matrix dimensions are 336x65536. Which library should I use? Which
guarantees better performance? The Processor is
Xeon® E5. Thanks

AFBR-709DMZ-IN3 sfp Not Detecting In X710-DA4

$
0
0

we have recently just upgraded our network to a 10GB network.

one of our main servers is a poweredge R730xd

the network card is a X710-DA4

we purchased the SFP+ module from the same suppliers and the part they gave us is AFBR-709DMZ-IN3.

 

when reading i see that this is not on the supported list:

Compatible SFP+ Modules, SFP Modules, and Cables for Intel® Ethernet...

 

however this is an intel part and the item on the supported list is the AFBR-709DMZ-IN2

 

would this make a difference? do i specifically need to source the AFBR-709DMZ-IN2 module?

 

 

incidentally other modules that we purchased for some other servers "SFP-10GSR-85 HU" are detected and appear to work.

the problem i have is an excessive amount of FCS Errors resulting in a highly unreliable link.

 

 

please assist

SNMP on server board SP1200SPLR

$
0
0

I'm using the Intel Server Board SP1200SPRL running Windows Server 2012 and try to do some basic SNMP monitoring of just the network traffic to begin with. I use MRTG for this but after installing the SNMP feature/service in the OS, I'm not even able to query the onboard NICs. Is the Intel SNMP Sub Agent download required even for just simple NIC monitoring - the Sub Agent release notes only describes it will enable monitoring of things like processor, power, temperature etc. but not the NICs.

 

Thank you in advanced.

Junction temp, MSL level, Baking time of I210-IT

$
0
0

Hi,

 

What is the junction temperature, MSL level and Baking time of I210-IT?

 

These informations are not available in the datasheets.

How to get audio to go through HDMI for Skyrim SE

$
0
0

Hi,

 

My name is Cameron. I have been playing Skyrim Special Edition for a couple of years now and a reoccurring issue I've had is when I plug a monitor into my laptop via HDMI, the video will play, put there won't be any audio. I have found a temporary work around by setting my laptop speakers as the default audio device and have the audio play through my laptop (this also works with speakers connected connected via aux or bluetooth if set to the default audio device). This however is very inconvenient. I had put off finding a solution to this problem as I was previously using a laptop that I was planning to upgrade from, but the problem consists with my new laptop as well. The problem occurs whether I install mods to the game or not. When doing some research, many were saying this was a intel/windows 10 issue. Please help.

 

Attached is a scan of my current laptops specs.


Intel Edison with OV7670 camera module

$
0
0

I want to use an Intel Edison with OV7670 camera module using the Linux of Edison. I want to get the image from camera and modify it. I am using C in the Linux but i don't understand how to use the OV7670 in this case.

 

I connect the OV7670 like that :  OV7670 Without FIFO Very Simple Framecapture With Arduino, Black/white: 7 Steps

 

I did the download of Arducan library in the Edison but a don't know how get the images by programation in C using the Arducan.

 

Do someone know how do that ?

Device Passthrough across Sockets in a Multi-Socket Setting

$
0
0

Greetings,

 

In a Dual Socket Server is it possible to passthrough a "PCIe device A" which is hanging from Root Complex of CPU 1 to a VM that is pinned on CPU 2. If so is there some PCIe/QPI(or UPI) Packet encapsulation/decapsulation that takes place ?

 

P.S. I don't have access to a dual socket machine so can't test it myself.

Hi, Since Intel Edison and Curie module are discontinued, where I can find their schematics to reproduce these modules for mass production ?

$
0
0

Hi, Since Intel Edison and Curie module are discontinued, where I can find their schematics to reproduce these modules for mass production ? Where to find the schematics of these modules so we can reproduce them ?

após ser formatado o meu computador voltou mais "lerdo" que o normal, rodando os meus jogos com 25 fps mesmo na pior qualidade gráfica. Gostaria de saber se alguém pode me ajudar a localizar a raiz/causador desse problema no meu pc.

$
0
0

Após ser formatado o meu computador voltou mais "lerdo" que o normal, rodando os meus jogos com 25 fps mesmo na pior qualidade gráfica. Gostaria de saber se alguém pode me ajudar a localizar a raiz/causador desse problema no meu pc.

inform. do pc.png

NUC5i3RYB cannot display BIOS in either HDMI or miniDP in the DellU2715h

$
0
0

Hi, I have been on the fence on this question, because I never had to change any bios settings and mostly the Bios updates launched by INTEL were all express, so I was able to update the bios through windows. However the round of latest (read as the RYBDWi35.86A.0370] requires a USB and access to the bios.

 

i used to be able to access the bios screen by plugging the NUC into my laptops HDMI_IN port and I could see the bios screen displayed on the laptops screen. But this laptop has been relocated and as such I have no access to same. The nuc works perfectly boots well into windows and all that jazz, no concerns regarding any display issues (Well all except the NXP Near field Prox being unable to start as per some driver issue, that I can’t seem to resolve.

 

i am running  win10pro on 8GB  ram, and a SATA6 2.5drive with all updates applied from win10 EXCEPT the recent spring update (18xx) because of it causing massive issues.

Viewing all 6470 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>