- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am a newer in MIC.
I install and config Phi follow this link "arrayfire.com/getting-started-with-the-intel-xeon-phi-on-ubuntu-14-04linux-kernel-3-13-0/".It seems that everything is OK.But when I run program,I get this information "offload error: cannot offload to MIC - device is not available".I source compilervars.sh intel64 before running program.My compiler version is "Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 16.0.1.150 Build 20151021".
I input "micctrl -s",then I get follow output:
mic0: online (mode: linux image: /usr/share/mpss/boot/bzImage-knightscorner).
then I ssh mic0,when I input password.I get follow information:
Tunnel device open failed.
Could not request tunnel forwarding.
after that,I check if coi_daemo has started on coprocessor and input "ps -aux | grep coi_daemon",It seems that coi_daemo is already running:
micuser 4827 0.0 0.0 97912 1580 ? Sl 10:13 0:00 /usr/bin/coi_daemon --coiuser=micuser
This is my source program:
#include <stdio.h>
#include <math.h>
#include "offload.h"
int
main()
{
float pi=0.0;
int count=10000;
int i;
#pragma offload target(mic)
for(i=0;i<count;i++)
{
float t=(float)((i+0.5)/count);
pi+=4.0/(1.0+t*t);
}
pi/=count;
if(fabs(pi-3.14)<=0.01)
printf("pass pi=%f\n",pi);
else
printf("fail\n");
return 0;
}
what should I do ?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I input "sudo miccheck" and get follow information:
miccheck
MicCheck 3.4.6-r1
Copyright 2013 Intel Corporation All Rights Reserved
Executing default tests for host
Test 0: Check number of devices the OS sees in the system ... pass
Test 1: Check mic driver is loaded ... pass
Test 2: Check number of devices driver sees in the system ... pass
Test 3: Check mpssd daemon is running ... pass
Executing default tests for device: 0
Test 4 (mic0): Check device is in online state and its postcode is FF ... pass
terminate called after throwing an instance of 'mic_exception'
what(): std::exception
Aborted (core dumped)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I find a problem,when I use "sudo micinfo":
MicInfo Utility Log
Created Fri Jan 29 15:47:26 2016
System Info
HOST OS : Linux
OS Version : 3.19.0-25-generic
Driver Version : 3.4.2-1
MPSS Version : NotAvailable
Host Physical Memory : 65866 MB
Device No: 0, Device Name: mic0
Version
Flash Version : 2.1.02.0390
SMC Firmware Version : 1.17.6900
SMC Boot Loader Version : 1.8.4326
uOS Version : 2.6.38.8+mpss3.4.6
Device Serial Number : ADKC51600279
Board
Vendor ID : 0x8086
Device ID : 0x225d
Subsystem ID : 0x3608
Coprocessor Stepping ID : 2
PCIe Width : x16
PCIe Speed : 5 GT/s
PCIe Max payload size : 256 bytes
PCIe Max read req size : 512 bytes
Coprocessor Model : 0x01
Coprocessor Model Ext : 0x00
Coprocessor Type : 0x00
Coprocessor Family : 0x0b
Coprocessor Family Ext : 0x00
Coprocessor Stepping : C0
Board SKU : C0PRQ-3120/3140 P/A
ECC Mode : Enabled
SMC HW Revision : Product 300W Active CS
Cores
Total No of Active Cores : 57
Voltage : 0 uV
Frequency : 1100000 kHz
Thermal
Fan Speed Control : On
Fan RPM : 900
Fan PWM : 20
Die Temp : 45 C
GDDR
GDDR Vendor : Elpida
GDDR Version : 0x1
GDDR Density : 2048 Mb
GDDR Size : 5952 MB
GDDR Technology : GDDR5
GDDR Speed : 5.000000 GT/s
GDDR Frequency : 2500000 kHz
GDDR Voltage : 1501000 uV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On the host side you need to run the mpss daemon in order to "talk" to the Mic card. I don't know if that is explained in the arrayfire.com HOWTO, but this deamon (mpssd) is essential for all Mic operations. Your mic_exception error is also most likely caused by this.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page