| 1 |
# Common stuff for "simd" modulefiles |
| 2 |
# Using "flavours" strategy |
| 3 |
# |
| 4 |
# This file expects the following Tcl variable to have been previously defined: |
| 5 |
# simd: The level of simd support, eg. avx, avx2, sse4.1 |
| 6 |
|
| 7 |
# Initialise "flavours" |
| 8 |
package require flavours |
| 9 |
flavours init |
| 10 |
|
| 11 |
proc ModulesHelp { } { |
| 12 |
global simd |
| 13 |
puts stderr " |
| 14 |
This is a dummy modulefile to indicate that the CPU vectorization |
| 15 |
should be set to '$simd' where possible. |
| 16 |
|
| 17 |
" |
| 18 |
} |
| 19 |
|
| 20 |
module-whatis "CPU Vectorization support level: $simd" |
| 21 |
|
| 22 |
# Even in production, this modulefile would not do anything |
| 23 |
conflict simd |
| 24 |
|
| 25 |
# Reload any modules with this as a prerequisite |
| 26 |
flavours cleanup |