1be66b3a1Stbbdev#%Module1.0################################################################### 2be66b3a1Stbbdev# 35f1ae0dcSIlya 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 205f1ae0dcSIlya Isaev############################################################################## 215f1ae0dcSIlya 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 30b2474bfcSIlya Isaev# if modulefile script name is a symlink, resolve it to get the fully 31b2474bfcSIlya Isaev# qualified pathname that points to the actual modulefile script 32b2474bfcSIlya Isaev# see: https://wiki.tcl-lang.org/page/file+normalize 33be66b3a1Stbbdevset scriptpath "${ModulesCurrentModulefile}" 34b2474bfcSIlya Isaevset scriptpath "[file dirname [file normalize "$scriptpath/___"]]" 35be66b3a1Stbbdev 365f1ae0dcSIlya Isaev# define componentroot, modulefilepath, modulefilename and modulefilever 375f1ae0dcSIlya Isaevset modulefilename "[file tail [file dirname "${scriptpath}"]]" 385f1ae0dcSIlya Isaevset modulefilever "[file tail "${scriptpath}"]" 395f1ae0dcSIlya Isaevset modulefilepath "${scriptpath}" 405f1ae0dcSIlya Isaevset componentroot "[file dirname [file dirname [file dirname [file dirname "${scriptpath}"]]]]" 415f1ae0dcSIlya Isaev 425f1ae0dcSIlya Isaev############################################################################## 435f1ae0dcSIlya Isaev 445f1ae0dcSIlya Isaevmodule-whatis "Name: Intel(R) oneAPI Threading Building Blocks" 455f1ae0dcSIlya Isaevmodule-whatis "Version: $modulefilename/$modulefilever" 465f1ae0dcSIlya Isaevmodule-whatis "Description: Flexible threading library for adding parallelism to complex applications across accelerated architectures." 475f1ae0dcSIlya Isaevmodule-whatis "URL: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb.html" 485f1ae0dcSIlya Isaevmodule-whatis "Dependencies: none" 495f1ae0dcSIlya Isaev 505f1ae0dcSIlya Isaevproc ModulesHelp { } { 515f1ae0dcSIlya Isaev global modulefilename 525f1ae0dcSIlya Isaev global modulefilever 535f1ae0dcSIlya Isaev module whatis "${modulefilename}/${modulefilever}" 54be66b3a1Stbbdev} 55be66b3a1Stbbdev 565f1ae0dcSIlya Isaev############################################################################## 57be66b3a1Stbbdev 585f1ae0dcSIlya Isaev# Define environment variables needed for an isolated component install. 59be66b3a1Stbbdev 605f1ae0dcSIlya Isaevset tbbroot "$componentroot" 61be66b3a1Stbbdevset tbb_target_arch "intel64" 62be66b3a1Stbbdev 63be66b3a1Stbbdevsetenv TBBROOT "$tbbroot" 64be66b3a1Stbbdev 65be66b3a1Stbbdevprepend-path CPATH "$tbbroot/include" 665f1ae0dcSIlya Isaevprepend-path LIBRARY_PATH "$tbbroot/lib" 675f1ae0dcSIlya Isaevprepend-path LD_LIBRARY_PATH "$tbbroot/lib" 68be66b3a1Stbbdevprepend-path CMAKE_PREFIX_PATH "$tbbroot" 69*58653a37SOlga Malyshevaprepend-path PKG_CONFIG_PATH "$tbbroot/lib/pkgconfig" 70