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