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

Building DFT in GCC and MSVC #70

Open
dancazarin opened this issue Nov 26, 2019 · 7 comments
Open

Building DFT in GCC and MSVC #70

dancazarin opened this issue Nov 26, 2019 · 7 comments

Comments

@dancazarin
Copy link
Member

For now, KFR DFT can be built only using Clang/Xcode.

Building with GCC 7 has been recently added while GCC 8 & 9 have bug described here:
#56
that prevents from building correct code for optimized binaries.

MSVC does not work too, because of ICE, out of heap space etc.

All KFR code that does not use DFT works correctly with all these compilers.

@mipac
Copy link

mipac commented Dec 3, 2019

in dev branch, what is the dft status?

is it possible to compile with clang 4.0 and link the lib with gcc 6.3 to the main?

@dancazarin
Copy link
Member Author

It's possible to build KFR DFT with clang 6+ and use it with any compatible compiler (GCC 7+).
Older versions may be supported too (and were supported in previous versions of KFR), you can test.

If you need DFT only and can use dynamic linking, you can build KFR C API (clang required).
Then the resulting shared library can be used with any C compiler.

All changes required to build C API are already published in dev branch.

@mipac
Copy link

mipac commented Dec 5, 2019

I need to test
Thank you very much for your answer

@reFX-Mike
Copy link

Is this still an issue with the latest msvc 2019 16.6.3? If yes, wouldn’t it make sense to report it to MS?

@mipac
Copy link

mipac commented Aug 18, 2020

i've test on debian

  • compile dft lib with clang6+ and stdc++
  • compile my app with gcc 8 and link with dft

it works 👍

@reFX-Mike
Copy link

Now that MSVC 2022 is out and available as 64-bit, can somebody try again if the DFT compiles successfully now?

@LCVitality
Copy link

LCVitality commented May 14, 2023

Now that MSVC 2022 is out and available as 64-bit, can somebody try again if the DFT compiles successfully now?

I tried with vs2022 17.5, the compilation was passed but the speed of the dft example was 5-10 times slower than clang.
I modified the data size of that example to 65536 * 2.

@dancazarin dancazarin mentioned this issue Oct 13, 2023
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

4 participants