- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I noticed that Lmod 8.4.19(latest version) do not support `is-avail` for now and it makes problem at "/opt/intel/oneapi/modulefiles/compiler/2021.1.1`
```
if { [ is-avail $cmplr_root/linux/lib/oclfpga/modulefiles/oclfpga ] } {
module load $cmplr_root/linux/lib/oclfpga/modulefiles/oclfpga
}
```
So I use `try-load` of Lmod:
```
module try-load $cmplr_root/linux/lib/oclfpga/modulefiles/oclfpga
```
However this requires tidious job for evey oneapi update in future. Is there any better options for it?
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi Lee,
I have checked the Lmod user guide 8.4.19 and I can see that is-avail has been mentioned as a functionality. I cannot find any reference of is-avail being removed.
But for the logic you are trying:
if { [ is-avail $cmplr_root/linux/lib/oclfpga/modulefiles/oclfpga ] } {
module load $cmplr_root/linux/lib/oclfpga/modulefiles/oclfpga
}
where you want to replace is-avail , i have a found a similar functionality in one of OneAPI files where they have used file exists instead of is-avail:
if { [file exists $modulefileroot/init_opencl] } {
module load $modulefileroot/init_opencl
}
You can try this and see if it works for you. Let us know if you face any issues
Regards
Prasanth
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Ah, by the way, I figured out default environment-modules of centos 7 is 3.2.10 which does not support `is-avail`. Since `is-avail` is supported from environment-modules 4.1.0 and above, I hope oneapi tutorial will clarify this point in future.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi Lee,
We haven't heard back from you.
Is the given alternative working for you? Let us know if you need any help
Regards
Prasanth
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I have tested today, and it works! thank you.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi Lee,
Thanks for the confirmation.
I would pass your suggestion to the internal team.
As this issue has been resolved, we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Regards
Prasanth

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable