1be66b3a1Stbbdev#%Module1.0################################################################### 2be66b3a1Stbbdev# 3*5f1ae0dcSIlya Isaev# Copyright (c) 2020-2023 Intel Corporation 4be66b3a1Stbbdev# 5be66b3a1Stbbdev# Licensed under the Apache License, Version 2.0 (the "License"); 6be66b3a1Stbbdev# you may not use this file except in compliance with the License. 7be66b3a1Stbbdev# You may obtain a copy of the License at 8be66b3a1Stbbdev# 9be66b3a1Stbbdev# http://www.apache.org/licenses/LICENSE-2.0 10be66b3a1Stbbdev# 11be66b3a1Stbbdev# Unless required by applicable law or agreed to in writing, software 12be66b3a1Stbbdev# distributed under the License is distributed on an "AS IS" BASIS, 13be66b3a1Stbbdev# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14be66b3a1Stbbdev# See the License for the specific language governing permissions and 15be66b3a1Stbbdev# limitations under the License. 16be66b3a1Stbbdev 17be66b3a1Stbbdev# This modulefile requires Environment Modules 4.1 or later. 18be66b3a1Stbbdev# Type `module --version` to determine the current installed version. 19be66b3a1Stbbdev 20*5f1ae0dcSIlya Isaev############################################################################## 21*5f1ae0dcSIlya Isaev 22be66b3a1Stbbdevset min_tcl_ver 8.4 23be66b3a1Stbbdevif { $tcl_version < $min_tcl_ver } { 24be66b3a1Stbbdev puts stderr " " 25be66b3a1Stbbdev puts stderr "ERROR: This modulefile requires tcl $min_tcl_ver or greater." 26be66b3a1Stbbdev puts stderr "Your system reports that tclsh version $tcl_version is installed." 27be66b3a1Stbbdev exit 1 28be66b3a1Stbbdev} 29be66b3a1Stbbdev 30*5f1ae0dcSIlya Isaev# if modulefile script name is a symlink, resolve it and then 31*5f1ae0dcSIlya Isaev# get the fully qualified pathname to this modulefile script 32be66b3a1Stbbdevset scriptpath "${ModulesCurrentModulefile}" 33*5f1ae0dcSIlya Isaevif { "[file type "${scriptpath}"]" eq "link" } { 34*5f1ae0dcSIlya Isaev set scriptpath "[file readlink "${scriptpath}"]" 35*5f1ae0dcSIlya Isaev} 36*5f1ae0dcSIlya Isaevset scriptpath "[file normalize "${scriptpath}"]" 37be66b3a1Stbbdev 38*5f1ae0dcSIlya Isaev# define componentroot, modulefilepath, modulefilename and modulefilever 39*5f1ae0dcSIlya Isaevset modulefilename "[file tail [file dirname "${scriptpath}"]]" 40*5f1ae0dcSIlya Isaevset modulefilever "[file tail "${scriptpath}"]" 41*5f1ae0dcSIlya Isaevset modulefilepath "${scriptpath}" 42*5f1ae0dcSIlya Isaevset componentroot "[file dirname [file dirname [file dirname [file dirname "${scriptpath}"]]]]" 43*5f1ae0dcSIlya Isaev 44*5f1ae0dcSIlya Isaev############################################################################## 45*5f1ae0dcSIlya Isaev 46*5f1ae0dcSIlya Isaevmodule-whatis "Name: Intel(R) oneAPI Threading Building Blocks" 47*5f1ae0dcSIlya Isaevmodule-whatis "Version: $modulefilename/$modulefilever" 48*5f1ae0dcSIlya Isaevmodule-whatis "Description: Flexible threading library for adding parallelism to complex applications across accelerated architectures." 49*5f1ae0dcSIlya Isaevmodule-whatis "URL: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb.html" 50*5f1ae0dcSIlya Isaevmodule-whatis "Dependencies: none" 51*5f1ae0dcSIlya Isaev 52*5f1ae0dcSIlya Isaevproc ModulesHelp { } { 53*5f1ae0dcSIlya Isaev global modulefilename 54*5f1ae0dcSIlya Isaev global modulefilever 55*5f1ae0dcSIlya Isaev module whatis "${modulefilename}/${modulefilever}" 56be66b3a1Stbbdev} 57be66b3a1Stbbdev 58*5f1ae0dcSIlya Isaev############################################################################## 59be66b3a1Stbbdev 60*5f1ae0dcSIlya Isaev# Define environment variables needed for an isolated component install. 61be66b3a1Stbbdev 62*5f1ae0dcSIlya Isaevset tbbroot "$componentroot" 63be66b3a1Stbbdevset tbb_target_arch "intel64" 64be66b3a1Stbbdev 65be66b3a1Stbbdevsetenv TBBROOT "$tbbroot" 66be66b3a1Stbbdev 67be66b3a1Stbbdevprepend-path CPATH "$tbbroot/include" 68*5f1ae0dcSIlya Isaevprepend-path LIBRARY_PATH "$tbbroot/lib" 69*5f1ae0dcSIlya Isaevprepend-path LD_LIBRARY_PATH "$tbbroot/lib" 70be66b3a1Stbbdevprepend-path CMAKE_PREFIX_PATH "$tbbroot" 71