Skip to content

Conversation

@Moelf
Copy link
Member

@Moelf Moelf commented Aug 7, 2025

julia> using AwkwardArray, Adapt, CUDA

julia> a = [rand(rand(1:10)) for _ in 1:5];

julia> offsetlist = ak.from_iter(a)
5-element AwkwardArray.ListOffsetArray{Vector{Int64}, AwkwardArray.PrimitiveArray{Float64, Vector{Float64}, :default}, :default}:
 [0.3893672498306302, 0.4460913595389929, ..., 0.057796016079792345]
 [0.9841042526444175, 0.9950665714461073, ..., 0.2238581936838373]
 [0.7771696340731816]
 [0.2385677791734916, 0.005399224600258767, ..., 0.7011812867589344]
 [0.06884029167153738, 0.28108772427116335, ..., 0.34110713672124804]

julia> cu_offsetlist = adapt(CuArray, offsetlist); # display is broken because we try to do scalar indexing on GPU array...

@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.74%. Comparing base (4159261) to head (48fac88).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
ext/AwkwardAdaptExt.jl 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #119      +/-   ##
==========================================
- Coverage   76.00%   75.74%   -0.27%     
==========================================
  Files           5        6       +1     
  Lines        1742     1748       +6     
==========================================
  Hits         1324     1324              
- Misses        418      424       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@Moelf
Copy link
Member Author

Moelf commented Aug 7, 2025

we don't have CI in tests, so I'm just gonna merge this for now based on https://gist.github.com/Moelf/e1319b2e9ca540f6848aec3e9081d07f

@Moelf Moelf merged commit f3176ee into main Aug 7, 2025
6 of 8 checks passed
@Moelf Moelf deleted the add_Adapt_interface branch August 7, 2025 16:39
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