Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-6456

NVCC error when build pytorch from source

    • False
    • Hide

      None

      Show
      None
    • False
    • AIPCC Accelerators 18, AIPCC Accelerators 19

      Description of problem:

          The pytorch team is trying to build torch from source using the upstream build script. The builds fails with the error nvcc fatal   : Value '-Xcompiler' is not defined for option 'Werror'. 
      
      Also the builds succeeds when we use the RHEL 9.6 base images, it only fails with the builder image.

      Version numbers (base image, wheels, builder, etc):

      RHEL: 9.6
      Builder Version: v23.13.0
      Torch 2.7

      Steps to Reproduce:

          1.docker build --no-cache --ulimit nofile=65536:65536 --build-arg RHEL_OS_VERSION=9.6 --build-arg PYT_BRANCH=v2.7.0 -t pytorch-rhel96-cuda12_8:10_07_2025 -f .devcontainer/dockerfiles/Dockerfile.cuda-rhel-builder .
          

      Actual results:

          nvcc fatal   : Value '-Xcompiler' is not defined for option 'Werror'

      Expected results:

          The build should succeed 

      Additional info:

              rh-ee-pcherupa Pavan Kalyan Reddy Cherupally
              rh-ee-pcherupa Pavan Kalyan Reddy Cherupally
              Frank's Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: