Installing Cnc on Ubuntu 13.10

Installing Cnc on Ubuntu 13.10

Hello,

I am having some trouble to install Cnc on Ubuntu 13.10.
I have download the package that include tbb, extract it, run

source cncvars.sh
( and CNCROOT is properly set in my env), but I still can't run make on the samples.

It says that either I don't have the permission or (if I run

sudo make
) that the variables are not set.

 

/opt/intel/cnc/0.9.001/samples$ make

	cd blackscholes; make all

	make[1]: Entering directory `/opt/intel/cnc/0.9.001/samples/blackscholes'

	cd blackscholes; make all

	make[2]: Entering directory `/opt/intel/cnc/0.9.001/samples/blackscholes/blackscholes'

	g++ -c -I/opt/intel/cnc/0.9.001/include -pthread  -std=c++0x -O3 -o blackscholes.o blackscholes.cpp

	Assembler messages:

	Fatal error: can't create blackscholes.o: Permission denied

	make[2]: *** [blackscholes.o] Error 1

	make[2]: Leaving directory `/opt/intel/cnc/0.9.001/samples/blackscholes/blackscholes'

	make[1]: *** [blackscholes/.dmy] Error 2

	make[1]: Leaving directory `/opt/intel/cnc/0.9.001/samples/blackscholes'

	make: *** [blackscholes/.dmy] Error 2
 

sudo make

	cd blackscholes; make all

	make[1]: Entering directory `/opt/intel/cnc/0.9.001/samples/blackscholes'

	cd blackscholes; make all

	Please estblish CnC environment variables before using this Makefile.

	E.g. by running cncvars.sh or cncvars.csh

	More information is available in 'Getting Started > Running the samples'

	make[2]: Entering directory `/opt/intel/cnc/0.9.001/samples/blackscholes/blackscholes'

	Makefile:11: *** CNCROOT is not set.  Stop.

	make[2]: Leaving directory `/opt/intel/cnc/0.9.001/samples/blackscholes/blackscholes'

	make[1]: *** [blackscholes/.dmy] Error 2

	make[1]: Leaving directory `/opt/intel/cnc/0.9.001/samples/blackscholes'

	make: *** [blackscholes/.dmy] Error 2
 

env | grep -i CNC

	LIBRARY_PATH=/opt/intel/cnc/0.9.001/tbb41_20121003oss/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21/:/opt/intel/cnc/0.9.001/lib/intel64

	LD_LIBRARY_PATH=/opt/intel/cnc/0.9.001/tbb41_20121003oss/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21/:/opt/intel/cnc/0.9.001/lib/intel64

	CPATH=/opt/intel/cnc/0.9.001/tbb41_20121003oss/include:/opt/intel/cnc/0.9.001/include

	PATH=/opt/intel/cnc/0.9.001/bin/intel64:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

	TBBROOT=/opt/intel/cnc/0.9.001/tbb41_20121003oss

	PWD=/opt/intel/cnc/0.9.001/samples

	DYLD_LIBRARY_PATH=/opt/intel/cnc/0.9.001/lib/intel64

	CNCROOT=/opt/intel/cnc/0.9.001

	CNC_ARCH_PLATFORM=intel64

	OLDPWD=/opt/intel/cnc/0.9.001

 

Carlo

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I suspect the samples directory is read-only. I suggest you copy the entire directory e.g.

cp -r $CNCROOT/samples /tmp
cd /tmp/
chmod -R u+rw samples
cd samples
make 

Does this help?

 

 

Thanks for your answer.

That was indeed the problem, even if now doesn't recognize the icpc command when compileng cholesky, at least I can start wit hthe Fibonacci tutorial ;).

Glad we could resolve it quickly. I hope you enjoy CnC and the tutorial.

Let us know if you have more questions.

frank

 

Login to leave a comment.