Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More macOS bugfixes/enhancements #2049

Merged
merged 4 commits into from
Aug 3, 2023
Merged

More macOS bugfixes/enhancements #2049

merged 4 commits into from
Aug 3, 2023

Conversation

mafiosnik777
Copy link
Contributor

After closing the window on macOS, the app just stays in the dock & you can click it but it won't reopen. It will call app.quit() now once all window instances are closed.

gif

SwinIR throws an error with the mps backend, because the aten::roll operator isn't implemented for mps yet.
I've set the environment variable to fall back to CPU on unsupported operators. This fixes the error & allows running SwinIR on the GPU, instead of fully on the CPU and brings a performance improvement of 3x.

image

@joeyballentine joeyballentine merged commit fbd9480 into chaiNNer-org:main Aug 3, 2023
14 checks passed
@RunDevelopment
Copy link
Member

Joey already merged, but I'll tell you about anyway. The app.quit() was probably caused by this

if (process.platform !== 'darwin') {

@joeyballentine
Copy link
Member

Oh, oops

@mafiosnik777
Copy link
Contributor Author

@RunDevelopment Yeah, didn't see. Not that familiar with the codebase yet.
Nonetheless still undesired behavior, because if you leave them in the dock, it should open a new instance on clicking. Which it didn't do, it just sat there as a dangling process.

Someone should remove L81-86 from create.ts.

@RunDevelopment
Copy link
Member

Someone should remove L81-86 from create.ts.

Will do.

stonerl pushed a commit to stonerl/chaiNNer that referenced this pull request Aug 3, 2023
* quit out of app on macOS once all windows are closed

* enable mps fallback on apple silicon

* move mps fallback somewhere else

* lint
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.

3 participants