首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我想使用HPC的gpu,并尝试添加CUDA模块...但是会发生错误。错误是"Lmod已检测到以下错误:

我想使用HPC的gpu,并尝试添加CUDA模块...但是会发生错误。错误是"Lmod已检测到以下错误:
EN

Stack Overflow用户
提问于 2021-05-13 04:43:10
回答 1查看 92关注 0票数 0
代码语言:javascript
复制
Lmod has detected the following error:  Unable to load module
because of error when evaluating modulefile:
     /trinity/shared/easybuild/modules/all/CUDA/11.1.1-GCC-10.2.0.lua: Empty or
non-existant file
     Please check the modulefile and especially if there is a the line number
specified in the above message
While processing the following module(s):
    Module fullname         Module Filename
    ---------------         ---------------
    CUDA/11.1.1-GCC-10.2.0  /trinity/shared/easybuild/modules/all/CUDA/11.1.1-GCC-10.2.0.lua

这个错误令人困惑。我输入了rm –rf ~/.lmod.d/.cache,但它不起作用。如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2021-05-14 02:18:09

你会cat /trinity/shared/easybuild/modules/all/CUDA/11.1.1-GCC-10.2.0.lua吗?也许你的modulefile不存在。

如果modulefile不存在,则为

:一般情况下,可以使用luatcl文件来写下modulefile。试着做一些像这样的文件!

代码语言:javascript
复制
#%Module

set s /usr/local/cuda-11.1

prepend-path PATH $s/bin
prepend-path LIBRARY_PATH $s/lib
prepend-path LD_LIBRARY_PATH $s/lib
prepend-path LIBRARY_PATH $s/lib64
prepend-path LD_LIBRARY_PATH $s/lib64
prepend-path CPATH $s/include
prepend-path INCLUDE $s/include
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67510779

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档