JuliaGPU / JuliaGPU/oneAPI.jl

Deallocate the vectors allocated only in the C interface

Open
#432 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
215
Forks
37
Avg merge
10h 47m
Merged PRs (30d)
14

Description

For some batched routines, we need a vector of `onemklTranspose`, `onemklDiag`, or `onemklSide`.
I allocate them in the C interface with the function [`convert`](https://github.com/JuliaGPU/oneAPI.jl/blob/master/deps/onemkl_prologue.cpp#L19-L35) but it's never deallocated after the call to the oneMKL routine, like [here](https://github.com/JuliaGPU/oneAPI.jl/blob/master/deps/src/onemkl.cpp#L3102) with `convert(uplo, group_count)`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in deps/onemkl_prologue.cpp, where convert allocates vectors for onemklTranspose, onemklDiag, or onemklSide, then inspect its callers in deps/src/onemkl.cpp, including the call near line 3102. Done means vectors allocated only for the C interface are deallocated after the corresponding oneMKL routine calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, julia
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.