Skip to content

gpu state clean-up? #231

Answered by 9prady9
progman1 asked this question in Q&A
Discussion options

You must be logged in to vote

The only state ArrayFire retains across sessions is the kernel binaries saved to the disk (to avoid recompilation on target machine at every startup session of the application, this is also started with recent 3.7.2 release) which don't hard code any runtime information. At every session (i.e. ArrayFire library is loaded into memory), it starts afresh - only global state that gets populated on startup is the information of what devices are accessible.

I don't think even vendor drivers retain any application specific state other than caching kernel binaries, which is for speed related reasons. I know that NVIDIA does this, not sure about AMD - but they also probably do cache kernel binarie…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 9prady9
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #231 on December 09, 2020 05:15.