Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

use Defer instead of atexit - #24

Open
adambrewster wants to merge 3 commits into
JuliaAttic:masterfrom
adambrewster:defer
Open

use Defer instead of atexit#24
adambrewster wants to merge 3 commits into
JuliaAttic:masterfrom
adambrewster:defer

Conversation

@adambrewster

Copy link
Copy Markdown
Contributor

I previously proposed not closing the cublas handle in an atexit handler (#19). This PR is for the same reasons but proposes an alternate mechanism to see the handle is closed if and when desired by the user. It also partially addressed #15.

@vchuravy

Copy link
Copy Markdown
Contributor

Defer.jl sounds definitively interesting. I am slightly wary of adding a new dependencies.

@kshyatt What do you think?

@adambrewster

Copy link
Copy Markdown
Contributor Author

That's a very reasonable objection, but Defer is pure julia and only about ~100 lines of code. The downside in this particular case is less than for some other packages that you might like to depend on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants