Skip to content

Added rotmg#57

Open
WestonJB wants to merge 2 commits intomainfrom
jweston/rotmg
Open

Added rotmg#57
WestonJB wants to merge 2 commits intomainfrom
jweston/rotmg

Conversation

@WestonJB
Copy link
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
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
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
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
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

2 participants