Skip to content

Commit

Permalink
Adjust modulefile according to the latest requirements (#2823) (#2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-Petrova authored Jul 8, 2024
1 parent d87fa3f commit 9f82131
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions deploy/local/dal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#%Module1.0###################################################################
#===============================================================================
# Copyright 2020 Intel Corporation
Expand Down Expand Up @@ -33,9 +34,9 @@ if { $tcl_version < $min_tcl_ver } {
set scriptpath "${ModulesCurrentModulefile}"
set scriptpath "[file dirname [file normalize "$scriptpath/___"]]"

# define componentroot, modulefileroot, modulefilename and modulefilever
# define componentroot, modulefilepath, modulefilename and modulefilever
set modulefilename "[file tail [file dirname "${scriptpath}"]]"
set modulefilever "[file tail "$scriptpath"]"
set modulefilever "[file tail "${scriptpath}"]"
set modulefilepath "${scriptpath}"
set componentroot "[file dirname [file dirname [file dirname [file dirname "${scriptpath}"]]]]"

Expand All @@ -51,8 +52,7 @@ set moduleinfoname [file dirname [module-info name]]

proc ModulesHelp { } {
global moduleinfoname
global modulefilever
module whatis "${modulefilename}/${modulefilever}"
puts "module whatis ${moduleinfoname}"
}

##############################################################################
Expand All @@ -61,14 +61,8 @@ proc ModulesHelp { } {

# Set intermediate variables
set dalroot "$componentroot"
set daalroot "$componentroot/$modulefilever"
if {[string equal [info machine] "aarch64"]} {
set daal_target_arch "arm"
} else {
set daal_target_arch "intel64"
}

module-whatis "oneAPI Data Analytics Library for $daal_target_arch."
set daal_target_arch "intel64"

# Setup environment variables
setenv DAL_MAJOR_BINARY 1
Expand Down

0 comments on commit 9f82131

Please sign in to comment.