the OS should not be a version suffix for the modules. it makes no sense, unless you are going to mix same modules across OSes which you shouldn't.

eg does CUDA-ubuntu even work on eg another ubuntu release or even RHEL? it's probably not what you want.

however, you will need it for the easyconfig file. the 4.2.9 for rhel and 4.2.9 for ubuntu are probably not the same eb config. this is also not 100% true, the easyconfig or block could have a mapping function between the OS name and the suffix for the source.

this is probably on of the few cases where true OS-dependencies are required (ie it depends on the OS, not on some software the OS provides). maybe it is time easybuild starts providing fixed OS names and a mechanism to detect them? it will be a major manual work unless someone finds something that already exists. for rhel flavour, reading and interpreting /etc/redhat-release comes to mind, but on need to distinguish between flavours (RHEL, centos, SL, SLC ,SLF,...). also such a harcoded mapping will mean that new OSes will either not work fully or we need to keep the mapping up to date.



stijn

On 01/22/2013 11:57 PM, Fotis Georgatos wrote:

Hi Ken, all,

On 22 Jan, 2013, at 16:33, Kenneth Hoste wrote:
Usually, you handle something like this with a version suffix in the CUDA easyconfig 
file, and hence you'll end up with a CUDA module like "CUDA/4.2.9-ubuntu10.04" .

OK, it seems the enlightenment arrives to me approximately near midnight! :-)

There is an elegant workaround which should get things going for a while,
until we understand what is the bigger picture in this family of issues.

One potential solution which does the job for us for now is, an easyconfig
which implements the dependency 4.2.9 -> 4.2.9-ubuntu10.04; Samewise, for RHEL.
ie. will can provide 2 easyconfigs that produce the *same* module name target,
which in turn is used as the dependency (same trick can be done for customizing
the openmpi stack in a particular HPC site and address many other things).

Once you provide CUDA/4.2.9, then it's easybuild business as usual.
Would you like hosting in the easyconfigs tree such firework solutions?

tia,
Fotis



Reply via email to