Skip to content

Added rotmg#57

Merged
tdehoff merged 2 commits intomainfrom
jweston/rotmg
Mar 18, 2026
Merged

Added rotmg#57
tdehoff merged 2 commits intomainfrom
jweston/rotmg

Conversation

@WestonJB
Copy link
Copy Markdown
Collaborator

@WestonJB WestonJB commented Feb 20, 2026

Tests do not work. Assignment to param inside blas_rotmg is not working. Closes #22.

test-level1.mojo Outdated
var d2 = generate_random_scalar[dtype](1, 10000)
var x1 = generate_random_scalar[dtype](-10000, 10000)
var y1 = generate_random_scalar[dtype](-10000, 10000)
var param = SIMD[dtype, 5]()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're passing a pointer to a SIMD type of width 5 here, and then in the kernel we're accessing param[0] which is of type SIMD[dtype, 5]. So when overwriting param[0] in the kernel we're actually setting all 5 values at once.

This should probably just be a list of DType that gets passed in directly

d2: UnsafePointer[Scalar[dtype], MutAnyOrigin],
x1: UnsafePointer[Scalar[dtype], MutAnyOrigin],
y1: UnsafePointer[Scalar[dtype], MutAnyOrigin],
param: UnsafePointer[SIMD[dtype, 5], MutAnyOrigin]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

param should be UnsafePointer[Scalar[dtype], MutAnyOrigin]

@jacksonmowry
Copy link
Copy Markdown
Collaborator

        var error = InlineArray[Scalar[dtype], n*n](fill=Scalar[dtype](0))

@WestonJB WestonJB force-pushed the jweston/rotmg branch 2 times, most recently from 1f22b0d to f519184 Compare March 4, 2026 23:01
@tdehoff tdehoff mentioned this pull request Mar 16, 2026
@tdehoff tdehoff merged commit 6355f92 into main Mar 18, 2026
1 check failed
@tdehoff tdehoff deleted the jweston/rotmg branch March 18, 2026 22:27
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.

rotmg

3 participants