[Beowulf] Module file for Intel 11

John Hearns hearnsj at googlemail.com
Tue Jan 20 09:12:23 EST 2009


2009/1/20 Kilian CAVALOTTI <kilian.cavalotti.work at gmail.com>

> Hi John,
>
>
> I would try to determine the machine type in the module file itself. Not
> sure
> if a modulefile could get the result of an external $(uname -m | sed
> 's/x86_64/intel64/;s/i[3-6]86/ia32/'), but the modulefile(4) manpage
> mentions
> a uname directive.
>

Yes, you can do that, for example:

        if { [file exists "/bin/uname"]} {
                set machinetype [ exec /bin/uname -m ]
                if { $machinetype == "ia64" }  {



>
>
> For me, Intel xxxvars.{c,}sh files never really fit into the module model.
> But
> I guess that's not what they have been designed for. So I used to give a
> look
> at was they do, which is often not much, and try to re-implement them using
> a
> modulefile.
>
Thankyou, that's useful.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.clustermonkey.net/pipermail/beowulf/attachments/20090120/e8fbef89/attachment-0001.html>
-------------- next part --------------
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf


More information about the Beowulf mailing list