Skip to content

Add multi-vendor C++ extension build system with CMake #73

Open
ceci3 wants to merge 1 commit intoflagos-ai:mainfrom
ceci3:add_crsc
Open

Add multi-vendor C++ extension build system with CMake #73
ceci3 wants to merge 1 commit intoflagos-ai:mainfrom
ceci3:add_crsc

Conversation

@ceci3
Copy link
Copy Markdown
Collaborator

@ceci3 ceci3 commented Mar 3, 2026

PR Category

Others

PR Type

New Features

Description

  • Add CMake-based build system for compiling C++ extensions (CUDA/Ascend backends)
  • Implement weak_ref_tensor operator for both CUDA and Ascend platforms
  • Improve version format to 0.0.1.dev0+g{commit}.{date}.{vendor} for better traceability
  • Support pure Python installation when VLLM_VENDOR is not specified
    Usage
Pure Python (no C++ extensions)

pip install .

With CUDA backend

VLLM_VENDOR=cuda pip install --no-build-isolation .

With Ascend backend

VLLM_VENDOR=ascend pip install --no-build-isolation .

Related Issues

Changes

Testing

Checklist

  • I have run the existing tests and they pass
  • I have added tests for my changes (if applicable)
  • I have updated the documentation (if applicable)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 3, 2026

CLA assistant check
All committers have signed the CLA.

if match:
major, minor = match.groups()
return f"cu{major}{minor}"
except Exception:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
return weak_ref_tensors(tensor)
else:
### TODO: add csrc npu custom op
except:

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
@ceci3 ceci3 force-pushed the add_crsc branch 2 times, most recently from 8ab9b15 to 0c068f8 Compare March 3, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants