Skip to content

Commit 9f82131

Browse files
Adjust modulefile according to the latest requirements (#2823) (#2844)
1 parent d87fa3f commit 9f82131

File tree

1 file changed

+5
-11
lines changed
  • deploy/local

1 file changed

+5
-11
lines changed

deploy/local/dal

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
#%Module1.0###################################################################
23
#===============================================================================
34
# Copyright 2020 Intel Corporation
@@ -33,9 +34,9 @@ if { $tcl_version < $min_tcl_ver } {
3334
set scriptpath "${ModulesCurrentModulefile}"
3435
set scriptpath "[file dirname [file normalize "$scriptpath/___"]]"
3536

36-
# define componentroot, modulefileroot, modulefilename and modulefilever
37+
# define componentroot, modulefilepath, modulefilename and modulefilever
3738
set modulefilename "[file tail [file dirname "${scriptpath}"]]"
38-
set modulefilever "[file tail "$scriptpath"]"
39+
set modulefilever "[file tail "${scriptpath}"]"
3940
set modulefilepath "${scriptpath}"
4041
set componentroot "[file dirname [file dirname [file dirname [file dirname "${scriptpath}"]]]]"
4142

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

5253
proc ModulesHelp { } {
5354
global moduleinfoname
54-
global modulefilever
55-
module whatis "${modulefilename}/${modulefilever}"
55+
puts "module whatis ${moduleinfoname}"
5656
}
5757

5858
##############################################################################
@@ -61,14 +61,8 @@ proc ModulesHelp { } {
6161

6262
# Set intermediate variables
6363
set dalroot "$componentroot"
64-
set daalroot "$componentroot/$modulefilever"
65-
if {[string equal [info machine] "aarch64"]} {
66-
set daal_target_arch "arm"
67-
} else {
68-
set daal_target_arch "intel64"
69-
}
7064

71-
module-whatis "oneAPI Data Analytics Library for $daal_target_arch."
65+
set daal_target_arch "intel64"
7266

7367
# Setup environment variables
7468
setenv DAL_MAJOR_BINARY 1

0 commit comments

Comments
 (0)