【问题标题】:I want to use the gpu of the HPC and try module add CUDA... But errors occurs. The error is "Lmod has detected the following error:我想使用 HPC 的 gpu 并尝试 module add CUDA ...但出现错误。错误是“Lmod 检测到以下错误:
【发布时间】:2021-08-03 05:43:01
【问题描述】:
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,但它不起作用。如何解决这个问题?

【问题讨论】:

    标签: linux module lua gpu hpc


    【解决方案1】:

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

    如果modulefile 不存在: 一般可以用lua或tcl文件写下modulefile。尝试制作这样的文件!

    #%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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-03
      • 1970-01-01
      • 1970-01-01
      • 2022-11-13
      • 2021-11-17
      • 2022-09-23
      相关资源
      最近更新 更多