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

HPX_WITH_RDTSC configure test fails, but should succeed #1244

Closed
eschnett opened this issue Sep 5, 2014 · 3 comments
Closed

HPX_WITH_RDTSC configure test fails, but should succeed #1244

eschnett opened this issue Sep 5, 2014 · 3 comments

Comments

@eschnett
Copy link
Contributor

eschnett commented Sep 5, 2014

I have an Intel MacBook Pro. It supports the rdtsc instruction. However, HPX reports:

-- Performing Test HPX_WITH_RDTSC - Failed

This is one way to use rdtsc that works on my system:

unsigned long long rdtsc(void)
{
  unsigned long eax, edx;
  asm volatile ("rdtsc" : "=a" (eax), "=d" (edx));
  return (unsigned long long) edx << 32 | eax;
}
@hkaiser hkaiser added this to the 0.9.9 milestone Sep 5, 2014
@hkaiser
Copy link
Member

hkaiser commented Sep 5, 2014

What compiler are you using here? Do you think you could fix the test program (https://github.com/STEllAR-GROUP/hpx/blob/master/cmake/tests/cpuid.cpp) for your platform and submit a pull request?

@sithhell
Copy link
Member

sithhell commented Sep 8, 2014

Is this fixed now?

@hkaiser
Copy link
Member

hkaiser commented Sep 8, 2014

Thomas, please see #1246.

@hkaiser hkaiser closed this as completed Sep 8, 2014
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

3 participants