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

sz_omp.c:19:19: error: ‘CLOCK_MONOTONIC_RAW’ undeclared #58

Closed
xantares opened this issue Aug 25, 2020 · 1 comment
Closed

sz_omp.c:19:19: error: ‘CLOCK_MONOTONIC_RAW’ undeclared #58

xantares opened this issue Aug 25, 2020 · 1 comment

Comments

@xantares
Copy link
Contributor

it seems CLOCK_MONOTONIC_RAW is linux-specific and wont compile for win32:

#ifdef _OPENMP
    return omp_get_wtime();
#else
    struct timespec ts;
    clock_gettime(CLOCK_MONOTONIC_RAW, &ts);

    return (double)ts.tv_sec + (double)ts.tv_nsec / 1000000000.0;
#endif
@disheng222
Copy link
Collaborator

SZ doesn't support windows version.
In addition to the CLOCK_MONOTONIC_RAW, I guess there might be more issues if you compile SZ on windows, e.g., some data type in SZ is declared as long which is 8 bytes on Linux but it is 4 bytes on Windows. We never tested SZ on windows. Sorry about that.

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

2 participants