Skip to content

Conversation

@EmmonsCurse
Copy link
Collaborator

Motivation

In some environments, running test_quantized_linear.py fails due to a deep_gemm JIT compilation error where nvcc rejects the -std=c++20 flag.
To ensure consistency between runtime and test environments, we set DG_NVCC_OVERRIDE_CPP_STANDARD=17 inside the test script to avoid build failures when the environment variable is not explicitly defined.

Modifications

Added the following line in tests/layers/test_quantized_linear.py:

os.environ.setdefault("DG_NVCC_OVERRIDE_CPP_STANDARD", "17")

Usage or Command

python -m pytest -sv tests/layers/test_quantized_linear.py

Accuracy Tests

No need

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Nov 12, 2025

Thanks for your contribution!

@EmmonsCurse EmmonsCurse merged commit 1c0b0b0 into PaddlePaddle:develop Nov 12, 2025
15 checks passed
@EmmonsCurse EmmonsCurse deleted the fix_new_docker branch November 17, 2025 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant