Rate This Document
Findability
Accuracy
Completeness
Readability

Handling Compilation Errors

  • Error 1: The GPU architecture is not supported, and the "nvcc fatal: Unsupported gpu architecture 'compute_35'" message is displayed.

    Use an environment variable to specify supported GPU architectures.

    1
    export TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6"
    
  • Error 2: System resources are used up during compilation due to insufficient memory. As a result, the server responds slowly or even does not respond.

    Limit the number of concurrent tasks. If the memory is insufficient, reduce the number.

    1
    export MAX_JOBS=32
    
  • Error 3: elsize is not found.

    Use NumPy 2.1 or earlier.

  • Error 4: An error may be reported when Torch is referenced. The error message is as follows:

    Exit the current source code directory and switch to an irrelevant directory, for example, /tmp. Then, run the python3 and import torch commands again in the new directory.