Skip to content

Get rid of non-existent type#30

Merged
kshyatt merged 2 commits intomainfrom
ksh/amdfix
Feb 26, 2026
Merged

Get rid of non-existent type#30
kshyatt merged 2 commits intomainfrom
ksh/amdfix

Conversation

@kshyatt
Copy link
Member

@kshyatt kshyatt commented Feb 26, 2026

For some reason BuildKite didn't run AMDGPU tests and didn't catch this 😞

@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
ext/StridedViewsAMDGPUExt.jl 0.00% <ø> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kshyatt
Copy link
Member Author

kshyatt commented Feb 26, 2026

Also got Buildkite working correctly, finally...

@test B == A
CUDA.@allowscalar begin
@test B == A
end
Copy link
Member

Choose a reason for hiding this comment

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

I was wondering about how this worked, i.e. what method it was dispatched to. It's probably some AbstractArray fallback in Base?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think so, yes. Another option is to copy these back to the CPU, but I worried we wouldn't be able to distentangle a bug in the copying back vs something with the StridedView itself...

@testset "ROCArrays with StridedView" begin
@testset for T in (Float64, ComplexF64)
A = AMDGPU.randn!(T, 10, 10, 10, 10)
A = ROCArray(randn(T, 10, 10, 10, 10))
Copy link
Member

Choose a reason for hiding this comment

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

Don't know if this also exists?

Suggested change
A = ROCArray(randn(T, 10, 10, 10, 10))
A = ROCArray.randn(T, 10, 10, 10, 10)

Copy link
Member Author

Choose a reason for hiding this comment

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

It doesn't work for complex element types unfortunately

@kshyatt kshyatt merged commit 44b764a into main Feb 26, 2026
12 of 15 checks passed
@kshyatt kshyatt deleted the ksh/amdfix branch February 26, 2026 14:22
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.

2 participants