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

cuFINUFFT does not install correctly in a windows environment, possibly using some linux library #589

Open
Zhe0301 opened this issue Nov 13, 2024 · 5 comments

Comments

@Zhe0301
Copy link

Zhe0301 commented Nov 13, 2024

The error code is as follows:
utils.h(13,10): error C1083: Cannot open include file: 'sys/time.h': No such file or directory

@ahbarnett
Copy link
Collaborator

ahbarnett commented Nov 13, 2024 via email

@lu1and10
Copy link
Member

'sys/time.h' is a unix header.

We changed to use #include <chrono> in cpu code so that timer in cpu code uses chrono function calls,

std::uint64_t now = std::chrono::duration_cast<std::chrono::microseconds>(

While gpu code still uses gettimeofday
void CNTime::start() { gettimeofday(&initial, 0); }

Need to reuse cpu utils.cpp in gpu code and remove the gpu side unix header 'sys/time.h' as we did in cpu code

@Zhe0301
Copy link
Author

Zhe0301 commented Nov 13, 2024 via email

@lu1and10
Copy link
Member

lu1and10 commented Nov 13, 2024

Thank you for your attention to this issue. According to my tests, both versions 2.3.1 and 2.3.0 have this problem. The problem occurs when cuFINNUFFT is installed with pip, i.e., the command: 'pip install cufinufft'.

Yes, the unix header 'sys/time.h' is always there on gpu code.
If pip install builds from sources which on windows is the case, it will complain about the unix header on windows. I guess we don't have a gpu window python wheel uploaded to pypi yet.

@DiamonDinoia
Copy link
Collaborator

I believe we could finish #577 and merge it. That will do.

I would like to remind that cufinufft is not officially supported on windows yet. It is on the TODO list. We were waiting for the CPU refactor to merge common functionalities in a common library and take care of these issues.

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

No branches or pull requests

4 participants