Skip to content

Meson GPU build fails due to undefined ext_modules and common_sources #168

@ZCY2013

Description

@ZCY2013

When enabling the GPU build (-Duse_gpu=true), meson.build references ext_modules and common_sources, but neither is defined anywhere in the file. This causes Meson configuration to fail before build.

  • meson setup /extern/scs-python/.mesonpy-3d_30kqi -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dlink_cudss=true -Dint32=true -Duse_gpu=true --native-file=/extern/scs-python/.mesonpy-3d_30kqi/meson-python-native-file.ini
    The Meson build system
    Version: 1.10.1
    Source dir: ~/extern/scs-python
    Build dir: /extern/scs-python/.mesonpy-3d_30kqi
    Build type: native build
    WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead
    Project name: scs
    Project version: undefined
    C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1
    22.04) 11.4.0")
    C linker for the host machine: cc ld.bfd 2.38
    Host machine cpu family: x86_64
    Host machine cpu: x86_64
    Program python found: YES (/usr/bin/python3.12)
    Library openblas found: YES
    Compiler for C supports arguments -Wno-unused-result: YES
    Library rt found: YES
    Run-time dependency CUDA (modules: cudart_static) found: YES 12.4 (/usr/local/cuda)

    ../meson.build:132:4: ERROR: Unknown variable "common_sources".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions