CrYOLO/1.6.1 modules

There are _cpu and _gpu flags available, which are selected based on
fancy modulefile code (Thanks Achim)
This commit is contained in:
2020-07-15 16:57:12 +02:00
parent 60f98fa57a
commit 308fd1c890
8 changed files with 75 additions and 7 deletions

View File

@@ -1,3 +1,5 @@
crYOLO/1.2.3 unstable cuda/9.0.176
crYOLO/1.5.6_gpu unstable anaconda/2019.07
crYOLO/1.6.1_gpu unstable anaconda/2019.07
crYOLO/1.6.1_cpu unstable anaconda/2019.07

View File

@@ -26,19 +26,28 @@ convolutional neural networks and utilizes the popular You Only Look Once
set shelltype [module-info shelltype]
switch -- $shelltype {
"sh" {
puts stdout "source \"\${ANACONDA_PREFIX}\"/admintools/conda_setup.sh;\n"
}
default {
puts stderr "Shells of type '$shelltype' are NOT supported!"
}
}
#set useflag [string map {{:} {}} $USEFLAGS]
#puts stderr "conda activate cryolo-${V_PKG}-${USEFLAGS%\n"
# Determine useflags and construct conda env name
set list [split $V "_"]
set version [lindex ${list} 0]
set useflags [lrange ${list} 1 end]
set flavour [lindex $useflags 0]
set env_to_activate [string tolower ${P}]-${version}-${flavour}
#puts stderr "P/V: $P/$V"
#puts stderr "USEFLAG: [lindex $useflags 0]"
#puts stderr "$env_to_activate"
switch [module-info mode] {
"load" {
# Relies on the anaconda module being loaded since we need to update the path
puts stdout "conda activate cryolo-1.5.6-gpu;\n"
puts stdout "conda activate $env_to_activate;\n"
}
"unload" -
"remove" {