Comments (2)
Hello,
This can be done, but to have backward compatibility, I would rather do something simple, like
#define VKFFT_PREC_FP32 0
#define VKFFT_PREC_FP64 1
As for the rework of inputPrecision and so on, it is better to wait until the callback functionality is formalized and added.
Best regards,
Dmitrii
from vkfft.
Hi,
so as I understand it, you suggest that the structure of the VkFFTConfiguration
structure could look like:
typedef struct {
// ...
pfUINT doublePrecision;
pfUINT quadDoubleDoublePrecision;
pfUINT quadDoubleDoublePrecisionDoubleMemory;
pfUINT halfPrecision;
pfUINT halfPrecisionMemoryOnly;
pfUINT doublePrecisionFloatMemory;
VkFFTPrecision precision;
VkFFTPrecision execPrecision;
// ...
} VkFFTConfiguration;
where
precision
would setup the memory precision and default precision for execution andexecPrecision
if set would set up the execution precision.
The behaviour then would be:
- if none of the precision variables is set,
float
precision is used as today - if any of the old precision variables (
doublePrecision
,halfPrecision
,...
) was specified, they would have the highest preference and everything would work as today - if
precision
is specified, the memory and execution precision is set to the value - if
execPrecision
is specified, the execution precision set byprecision
is overrided to the given value
Do I get it right?
And I do not understand why it would be better to define the precision values as macros instead of an enum. What is the motivation?
Thank you.
Best regards
David
from vkfft.
Related Issues (20)
- Large errors using Intel OpenCL for CPUs HOT 8
- Allow complex transforms to use non-interleaved memory layouts (separate I and Q buffers) HOT 3
- Segmentation fault with 1.3.3 HOT 2
- Merge DCT and DST into DTT HOT 4
- [1.3.4] #include glslang_c_interface.h -> glslang/Include/glslang_c_interface.h HOT 1
- [1.3.4] Could you detect and use the system glslang via cmake HOT 1
- Support VK_KHR_push_descriptor to allow multiple invocations with different buffers in a single command buffer HOT 3
- initializeVkFFT throws an exception for small-size convolutions HOT 3
- Multiple systems - one kernel - multiple outputs convolution HOT 10
- in order to use VkFFT, my machine must have a Vulkan driver installed ? HOT 1
- how to dump the generated source kernel? HOT 6
- CUDA&HIP stream asynchronicity HOT 2
- Error module and new error handling HOT 2
- Allow HIP to be used with NVIDIA GPUs HOT 1
- [Metal] red herring
- Suggestion: add CITATION.cff HOT 1
- device function performing FFT/DCT of data in shared memory (feature request / feasability) HOT 2
- Creating Multiple VkFFTApplication plans HOT 4
- Orthogonal normalization HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vkfft.