Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
luitjens committed Feb 1, 2023
1 parent d216522 commit 436389c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions bench/00_transform/svd_power.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@
#include <nvbench/nvbench.cuh>
#include "matx/core/nvtx.h"

#define cudaCheckError() { \
cudaError_t e=cudaGetLastError(); \
if(e!=cudaSuccess) { \
printf("Cuda failure %s:%d: '%s'\n",__FILE__,__LINE__,cudaGetErrorString(e)); \
exit(0); \
} \
}


using namespace matx;

using svd_types =
nvbench::type_list<float, double, cuda::std::complex<float>, cuda::std::complex<double>>;

/* FFT benchmarks */
/* SVD benchmarks */
template <typename ValueType>
void svdpi_batch(nvbench::state &state,
nvbench::type_list<ValueType>)
Expand Down Expand Up @@ -70,8 +61,6 @@ void svdpi_batch(nvbench::state &state,
svdpi(U, S, VT, A, x0, iterations, launch.get_stream(), r); });
MATX_NVTX_END_RANGE( 1 )

cudaCheckError();

}
NVBENCH_BENCH_TYPES(svdpi_batch, NVBENCH_TYPE_AXES(svd_types))
.add_int64_axis("cols", {4, 16, 64})
Expand Down

0 comments on commit 436389c

Please sign in to comment.