Repository navigation
strix/scale: unblock SCALE 1.8.0 out-of-the-box build and boot - #436
Merged
Merged
Conversation
- Symlink kernels/strix/common/atlas_pdl.cuh -> ../../gb10/common/atlas_pdl.cuh (missing on main; broke 22 strix kernels at compile time; __CUDA_ARCH__=890 under SCALE 1.8.0 compiles it as a no-op). - Probe O_DIRECT pread on PinnedUploader slot 0 against the first shard in FastSafetensorsLoader; on EFAULT (SCALE 1.8.0 shoulder HSA cuMemHostAlloc memory is rejected by kernel O_DIRECT get_user_pages while posix_memalign succeeds), warn once and fall back to ShardReaders (still O_DIRECT + pipelined, no page-cache pollution, no ATLAS_FAST_LOAD=0 required). - Prefer newest installed SCALE toolchain in find_scale_dir(), build-amd.sh, and serve-amd.sh when SCALE_HOME is unset. - Default ATLAS_FFN_SMALLM=1 on strix (SCALE) in serve-amd.sh (leaves strix-hip untouched at 0) and expose KV_DTYPE (default bf16) so KV_DTYPE=fp8 works without duplicate --kv-cache-dtype flags.
Contributor
Author
E2E Verification Receipt (
|
This was referenced Dec 1, 2026
Contributor
Author
|
Verified on top of current main (integration branch = main 585c8fa + #436/#437/#438, merged clean), DevLab strix-hip, Qwen3.8-27B-NVFP4, C=1 64K:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unblocks building and serving
ATLAS_TARGET_HW=strix(SCALE 1.8.0) out of the box on AMD Strix Halo (gfx1151), tested againstnvidia/Qwen3.8-27B-NVFP4:atlas_pdl.cuhsymlink: Addedkernels/strix/common/atlas_pdl.cuh -> ../../gb10/common/atlas_pdl.cuh, which previously failed 22strixkernels at compile time (__CUDA_ARCH__=890under SCALE 1.8.0 compiles it cleanly as a no-op).FastSafetensorsLoaderO_DIRECT+cuMemHostAllocEFAULTfallback: SCALE 1.8.0'sshoulderHSA pinned host memory is rejected by LinuxO_DIRECTpread()withEFAULT(whereasposix_memalignsucceeds withO_DIRECT). Added a 1-blockPinnedUploader::supports_direct_ioprobe against the first shard; onEFAULTit logs once and falls back toShardReaders(stillO_DIRECT+ pipelined, zero page-cache pollution, noATLAS_FAST_LOAD=0needed). NVIDIA andstrix-hipare unaffected.find_scale_dir(),build-amd.sh, andserve-amd.shsort discoveredscale*-Linuxinstalls newest-first whenSCALE_HOMEis unset.serve-amd.shdefaultsATLAS_FFN_SMALLM=1onstrixonly (strix-hipunchanged at0), avoiding the heavy VGPR spill in SCALE's CUDAm128path on short prompts.serve-amd.shexposesKV_DTYPE(defaultbf16) instead of hardcoding--kv-cache-dtype bf16.Verification
cargo fmt --all -- --check,cargo clippy -p spark-runtime -p atlas-kernels --tests -- -D warnings,RUSTDOCFLAGS='-D warnings' cargo doc --no-deps,kernel_shadow_detector, and 31/31fast_weightsunit tests (including newdirect_io_probe_accepts_valid_buffer_and_rejects_efault).b283c8e44onframework(gfx1151, SCALE 1.8.0,nvidia/Qwen3.8-27B-NVFP4) running now — receipts will be posted once complete.