2009/1/20 Kilian CAVALOTTI <kilian.cavalotti.w...@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.
_______________________________________________ Beowulf mailing list, Beowulf@beowulf.org To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf