Skip to content

Qualify CUDA-JS alpha.20 for Connect4 BSFP dominance consumer #81

Description

@iteathen

Consumer-backed request

Connect4 CUDA-BSFP P2 now has a concrete Tensor consumer seam: accelerating exact antichain dominance checks for overflow segments while keeping packed representation and compaction Connect4-owned.

The intended first experiment uses the existing device-callable Tensor profile:

  • item axis = candidate masks;
  • shared right operand = accepted-frontier bit rows;
  • rank-2 item matmul computes candidate/frontier overlap counts;
  • exact elementwise/reduction logic derives one dominated/keep result per candidate;
  • Connect4 imports tensorRunItem into Device-JS and keeps final compaction on-device.

No new Tensor math operation is currently required.

Concrete compatibility gate

Connect4 P2 is qualified against CUDA-JS:

98e2ebc942c14d63acf4dd82e912dd548c363a05 (cuda-js@0.1.0-alpha.20)

Current protected CUDA-JS-Tensor main remains frozen to:

45a9ef15537b52d6fd7c615b7e596676dfd00587 (cuda-js@0.1.0-alpha.18)

Tensor correctly fails closed on the newer pair today. The requested work is an exact-pair refresh/qualification, not relaxation of Tensor compatibility checks.

Acceptance

  • Review CUDA-JS changes from the protected Tensor pin through 98e2ebc... for Tensor-relevant contract changes.
  • Update the exact CUDA-JS dependency and Tensor compatibility identity only if review supports it.
  • Run the complete Tensor portable/repository test suite on the exact new pair.
  • Qualify device-callable rank-2 item matmul + per-item reduction generation on the exact new pair.
  • Preserve fail-closed workspace/resource bounds and lifecycle behavior.
  • Obtain native evidence on the Connect4 Windows GPU host before making any native/performance claim.

Ownership boundary

CUDA-JS-Tensor owns generic Tensor math, device-callable ABI and workspace/resource facts. Connect4 owns packed mask representation, BSFP antichain semantics, tiling policy, survivor compaction and correctness oracle. CUDA-JS owns runtime/compiler/device mechanisms.

If this exact-pair qualification exposes a missing or broken CUDA-JS primitive, file that defect in iteathen/CUDA-JS; do not emulate a lower-layer workaround inside Tensor or Connect4.

No claim is made that Tensor will be faster until the bounded native A/B is measured.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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