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

Please add support for windows and macOS #1734

Closed
fenginsc opened this issue Oct 9, 2022 · 9 comments
Closed

Please add support for windows and macOS #1734

fenginsc opened this issue Oct 9, 2022 · 9 comments

Comments

@fenginsc
Copy link
Contributor

fenginsc commented Oct 9, 2022

Please add support for windows and macOS

@Munksgaard
Copy link
Collaborator

Munksgaard commented Oct 9, 2022

You should be able to install Futhark on macOS using homebrew.

Windows is not officially supported, but you should be able to get it to work through WSL.

What problems have you encountered when trying to use either method?

@fenginsc
Copy link
Contributor Author

fenginsc commented Oct 9, 2022

You should be able to install Futhark on macOS using homebrew.

Windows is not officially supported, but you should be able to get it to work through WSL.

What problems have you encountered when trying to use either method?

Thanks for the reply, I just wish macOS had a separate binary installer, and official support for windows instead of WSL.

@athas
Copy link
Member

athas commented Oct 18, 2022

Homebrew is so easy to use (and Windows so fragile in CI) that we have no plans to make binaries for these platforms anytime soon.

@athas athas closed this as completed Oct 18, 2022
@haoranpb
Copy link
Collaborator

@athas Just a minor thing, this doesn't work on macOS, specifically the -D

install -D $$(cabal -v0 list-bin exe:futhark) $(PREFIX)/bin/futhark

@jmhimara
Copy link

jmhimara commented Nov 11, 2022

I would also like to add that while the WSL option works, there's currently no OpenCL support there. So a windows port would be nice, although I understand why this is not a priority.

I was able to compile it natively on windows (since haskell is available), but every time I run it I keep getting the error: Unknown import "/prelude/prelude" Maybe the haskell code is not able to find certain libraries?

@athas
Copy link
Member

athas commented Nov 11, 2022

I think NVIDIA supports CUDA (and maybe also OpenCL) under WSL. Not sure about AMD.

The import error is unfortunate and is related to differences in pathname representation (Windows uses backslashes). I remember fixing that bug many times, and it's not surprising that it has snuck back in. I'll see if I can dig up a Windows system and fix it again.

@jmhimara
Copy link

@athas Yes, I think Cuda works but I haven't seen any reference to OpenCL working in WSL. I only have an AMD card at my disposal right now. Perhaps I can try again once I get my hands on an nvidia system.

@athas
Copy link
Member

athas commented Nov 12, 2022

I fixed the bug that prevented anything from working. I'll merge it once #1760 passes CI. Windows is still poorly tested, so I have no idea how well it works, but it should at least be able to compile programs.

@jmhimara
Copy link

@athas Thanks!

I can probably find the time to do some more tests on Windows, see what works and what doesn't. At the very least you'll have a record for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants