I interpreted this question generally as “how do I use _printf format specifiers with cuDoubleComplex?”
I think we’ve covered that. If you are now using
Then I would say that is the correct way to do it. (To be very correct, the
l is unnecessary and should not be used.
%f by itself is a correct format specifier both for an underlying
float type as well as an underlying
In that context, I would say it is “working correctly”.
If you are now seeing zeros as output, I would be fairly confident that the reason for it is that those variables actually do contain zero values which again is consistent with a statement that it is “working correctly”.
If you are now wondering why they have zero values (which I interpret as a different question than “how do I use _printf format specifiers with cuDoubleComplex?”), and we have more-or-less established that your print statements are constructed correctly, then I would suggest the reason for that lies in some other aspect of your code, which you have not shown (here, in this question). Yes, I realize you may have shown the code in another question. If I can help there, I will. However, as indicated there already, posting 1000 lines of improperly formatted code that are riddled with issues is not something I generally have the time to deal with. If you ask more focused questions like this one, preferably with short, complete test cases, that (in my opinion) is a best practice for getting a useful response on these forums.