Skip to content

Commit

Permalink
minor cleanup: disable FFT test in -verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
preda committed Nov 19, 2024
1 parent cb47a06 commit 1333d16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ void Gpu::selftestTrig() {
}
*/

/*
vector<double> data;
for (int i = 0; i < 2 * 16; ++i) { data.push_back(2*16 - i); }
vector<double> ref = data;
Expand All @@ -1104,6 +1105,7 @@ void Gpu::selftestTrig() {
for (int i = 0; i < 16; ++i) { log("FFT[%d] = %f, %f (%d %d)\n", i, data.at(2*i) / 16, data.at(2*i + 1) / 16,
ulps(ref.at(2*i), data.at(2*i)/16), ulps(ref.at(2*i + 1), data.at(2*i+1)/16)); }
*/
}

static u32 mod3(const std::vector<u32> &words) {
Expand Down
2 changes: 1 addition & 1 deletion src/cl/fftbase.cl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void shufl(u32 WG, local T2 *lds2, T2 *u, u32 n, u32 f) {
void tabMul(u32 WG, Trig trig, T2 *u, u32 n, u32 f) {
u32 me = get_local_id(0);

#if 1
#if 0
u32 p = me / f * f;
#else
u32 p = me & ~(f - 1);
Expand Down

0 comments on commit 1333d16

Please sign in to comment.