-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Allow debug builds with cmake -DCMAKE_BUILD_TYPE=Debug #128
Comments
Hello. The CMake is used to configure the benchmark/precision verification suite. Why would you not want it to be built in Release? The library itself is header-only, so this should not affect the actual usage of it. Best regards, |
Not sure what's @pknowles's case, but I used the debug build for solving #124. The flow was like: "Our application now crashes. But is it a bug in VkFFT itself or in how we use it? Let's try the benchmark suite. Crashes too? Ok, now we know that it's not our code. Let's run the benchmark suite in debugger and look at the stack trace to avoid any extra noise and abstraction layers." (in the end, there was an unrelated issue with our code, but that's another story) |
Ok, but that is one line of code that is needed to change in CMakeLists. The main purpose of the benchmark is to measure the best performance, so it makes sense to force the Release build for this - I think I originally enabled it as there were some performance drops in the cuFFT library and I wanted the comparison to be fair. |
Can't argue here. But it is also not hard to surround this line with |
True, I can add this in the next update. Thanks! |
-Added double-double support in VkFFT. Requires cpu initialization in full quad precision, so only supports gcc for now. Potentially possible to add full FP128 support or some other FP128 library (like mpir) in the future. -Data has to be stored in double-double before VkFFT kernels calls (no fp128<->double-double conversion on the GPU yet). -Full 1e-32 precision, but same range as FP64. See Library for Double-Double and Quad-Double Arithmetic by Y Hida for more information on double-double. -Reuqires FMA contraction to be disabled (due to ab-cd contraction rounding mismatch). Doesn't work on Vulkan as I haven't found how to do that yet. -Fixed warnings (#138) -Added proper check for app to be zero before initializeVkFFT call and zeroing on deletion (#134) -Added an option to provide staging buffer in application and VkGPU handle (#129) -Added guards for build type (#128) -Fixed missing deallocation calls for the inverse Bluestein axes. Fixed the buffer layout size in Vulkan in some cases. -Refactored the code generator and container struct layout for better handling complex numbers (-5k loc). -Added more precision tests and benchmarks. -Will be merged in the main branch after more testing and update to the documentation.
Dear All, These guards have been added to the 1.3.2 version. Best regards, |
-Added double-double support in VkFFT. Requires cpu initialization in full quad precision, so only supports gcc with quadmath dependency for now. Potentially possible to add full FP128 support or some other FP128 library (like mpir) in the future. -Data has to be stored in double-double before VkFFT kernels calls (no fp128<->double-double conversion on the GPU yet). -Full 1e-32 precision, but same range as FP64. See Library for Double-Double and Quad-Double Arithmetic by Y Hida for more information on double-double. -Double-double requires FMA contraction to be disabled (due to ab-cd contraction rounding mismatch). Doesn't work on Vulkan as I haven't found how to do that yet. -Added DST I-IV support. -Fixed warnings (#138) -Added proper check for app to be zero before initializeVkFFT call and zeroing on deletion (#134) -Added an option to provide a staging buffer in the application and VkGPU handle (#129) -Added guards for build type (#128) -Changed default innermost stride for real buffers in out-of-place R2C from size[0]+2 to size[0] (#139) -Allow specifying glslang version (#135) -Improved instruction count and accuracy for radix-7. -Fixed missing deallocation calls for the inverse Bluestein axes. Fixed the buffer layout size in Vulkan in some cases. -Refactored the code generator and container struct layout for better handling complex numbers (-5k loc). -Added more precision tests and benchmarks.
It would be good to avoid the following, so that cmake can be configured for debug builds:
See: https://stackoverflow.com/a/23916503/1888983
The text was updated successfully, but these errors were encountered: