MoonshotAI / MoonshotAI/FlashKDA

Surface CUTLASS initialization and CUDA launch-configuration failures

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Cuda
Stars
1.3k
Forks
122
PR merge metrics
No merged PRs in 30d

Description

Problem

Two initialization boundaries currently discard errors:

  1. setup.py runs git submodule update --init cutlass without checking its exit status and without setting the working directory to the repository root. If Git fails, installation continues until compilation reports a less actionable missing-header error.
  2. The forward launcher discards the return values of both cudaFuncSetAttribute calls used to configure dynamic shared memory.

The documented clone and submodule workflow itself works when initialization succeeds. The problem is that failures are reported later and at the wrong boundary.

Desired outcome

  • Run CUTLASS initialization from the repository root.
  • Stop immediately on a missing Git executable or nonzero Git exit.
  • Include enough context in the error for users to retry the documented submodule command.
  • Propagate cudaFuncSetAttribute errors through the project's PyTorch/CUDA error mechanism.
  • Preserve successful setup behavior, architecture selection, launch dimensions, and shared-memory sizes.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with setup.py and locate the forward launcher’s two cudaFuncSetAttribute calls. Check how the documented submodule command is run and how PyTorch/CUDA errors are propagated, then verify that Git failures and launch-configuration failures stop at their respective boundaries while successful setup, architecture selection, launch dimensions, and shared-memory sizes remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, build-system, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.