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

Issues with recent changes #29

Open
mscdex opened this issue Oct 23, 2016 · 3 comments
Open

Issues with recent changes #29

mscdex opened this issue Oct 23, 2016 · 3 comments

Comments

@mscdex
Copy link
Contributor

mscdex commented Oct 23, 2016

After pulling in recent changes I encountered a couple of issues so far:

  • With the new AVX target, I found that the XRSTORE check only works for AVX2. Here's what I ended up using in codec_choose.c to support AVX (not sure how correct this is):
if (max_level >= 7) {
  #ifdef HAVE_AVX2
    __cpuid_count(7, 0, eax, ebx, ecx, edx);
  #endif
  #ifdef HAVE_AVX
  if (!(ecx & bit_XSAVE_XRSTORE)) {
    __cpuid(1, eax, ebx, ecx, edx);
  }
  #endif

  // ...
  • My build setup uses libtool, which apparently has issues on macOS when multiple files have the same base name, in this case it's the codec.c files in each target/arch directory. Supposedly Windows may have a similar issue in some cases?
@mayeut
Copy link
Contributor

mayeut commented Oct 23, 2016

Well the code for AVX2 was buggy before. It's still buggy now... I will make a PR to get this fixed.

@mayeut
Copy link
Contributor

mayeut commented Oct 23, 2016

Regarding you second bullet point, without any pointer to your configuration, it will be hard to provide any support. I'm on macOS, I have libtool installed, I can try to check that if you provide me with your fork URL.

@aklomp
Copy link
Owner

aklomp commented Nov 29, 2016

So the AVX detection was fixed (thanks @mayeut), which leaves the macOS libtool problem. @mscdex, could you provide some more information about what exactly is going wrong, such as terminal output or error messages?

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

3 participants