Software Archive
Read-only legacy content
17061 Discussions

scif_open: Permission denied

Minh_H_
Beginner
535 Views

Hi,

System: Ubuntu 14.04.1 LTS, MPSS 3.4.1, parallel_studio_xe_2015_update1 and  g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2.

I am trying to use scif for communication with mic. However on the host node, I got the following error when calling scif_open

Error no: 13, msg: Permission denied

However when I run problem in sudo mode, it works fine.

How can I fix this problem?

  Thanks

0 Kudos
5 Replies
Frances_R_Intel
Employee
535 Views

If you had said your program was dying in scif_bind, I would have asked- Is the port number greater than 1024? Smaller port numbers are privileged and can only be assigned by root. But scif_open shouldn't return a permission denied. It should only return  insufficient memory or library version mismatch. Could you confirm that the program really is in scif_open when it dies and check that the port you are using is greater than 1024?

 

0 Kudos
Minh_H_
Beginner
535 Views

Hi Frances,

It was sci_open. However it seems to me that problem was specific to Ubuntu, not Centos.

Example (Ubuntu 14.04)

/usr/share/doc/scif/tutorials/

 ./scif_accept_host -l 2050 -s 1024 -b 1
scif_open failed with error -1

sudo ./scif_accept_host -l 2050 -s 1024 -b 1
scif_bind to port 2050 success

  Thanks

0 Kudos
Minh_H_
Beginner
535 Views

I has fixed it now.

Change permission of /dev/mic/scif

sudo chmod o+w  /dev/mic/scif

0 Kudos
Luo_x_
Beginner
535 Views

      Could you please post the way you compile the source code of MPSS on ubuntu and the way you install MPSS? Thank you.

    This is my email: 13298652700@163.com. Thank you.

0 Kudos
Minh_H_
Beginner
535 Views
0 Kudos
Reply