testing after installation failed in macbook

Open forum for general discussions relating to PLASMA.

testing after installation failed in macbook

Postby flavioc » Thu Jun 03, 2010 10:36 pm

Hi!

I have just installed PLASMA in a macbook (snow leopard 10.6.3, core 2 duo), with:

sudo ./setup.py --cc gcc --fc gfortran --blaslib="-framework veclib" --ccflags=" -I/usr/include/sys/"

Everything compiled fine, but the tests fail to run with:

Compiling PLASMA... Installation of PLASMA successful..
(log is in /Users/flavioc/Downloads/plasma-installer/log/plasmalog )
Compiling tests... done
Running PLASMA tests on 2 cores...(takes some time, feel free to grab a coffee!)
--> testing ...

PLASMA: Testing failed...
stderr:
****************************************
Traceback (most recent call last):
File "./plasma_testing.py", line 25, in <module>
if ((len(sys.argv)>1) and (int(sys.argv[1])<=ncpus_av)):
NameError: name 'ncpus_av' is not defined

****************************************


log/plasmalog says the same thing:
gfortran aladhd.o alaerh.o [...many objects here...] dlabad.o dlaran.o dlarnd.o dlascl.o dlatm1.o dzsum1.o izmax1.o dlaord.o -L../../lib -lplasma -lcoreblas -lcorelapack -lcblas -framework veclib -lpthread -lm -o xlintstz
Traceback (most recent call last):
File "./plasma_testing.py", line 25, in <module>
if ((len(sys.argv)>1) and (int(sys.argv[1])<=ncpus_av)):
NameError: name 'ncpus_av' is not defined


Any ideas will be appreciated, thanks!

Flavio
flavioc
 
Posts: 1
Joined: Thu Jun 03, 2010 10:18 pm

Re: testing after installation failed in macbook

Postby luszczek » Fri Jun 04, 2010 10:56 pm

The quickest fix I can think of is to edit the file
Code: Select all
testing/plasma_testing.py


After this line:
import os, sys, math

insert this line:
ncpus_av=1

Apparently Snow Leopard changed some system settings and the script is not detecting
available cores.

Piotr
luszczek
 
Posts: 15
Joined: Tue Jul 14, 2009 2:10 pm


Return to User discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron