Skip to content

Commit

Permalink
fixed manysmallprobs to use DYNLIB since fails to link with STATICLIB…
Browse files Browse the repository at this point in the history
…; added it and gurutime to perftest make task
  • Loading branch information
ahbarnett committed Feb 17, 2025
1 parent 04fbd67 commit b23a7f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
9 changes: 4 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ bigtest: perftest/big2d2f

PERFEXECS := $(basename $(wildcard test/finufft?d_test.cpp))
PERFEXECS += $(PERFEXECS:%=%f)
perftest: $(ST) $(STF) $(PERFEXECS) spreadtestndall bigtest
perftest: $(ST) $(STF) $(PERFEXECS) spreadtestndall bigtest gurutime manysmallprobs
# here the tee cmd copies output to screen. 2>&1 grabs both stdout and stderr...
(cd perftest ;\
./spreadtestnd.sh 2>&1 | tee results/spreadtestnd_results.txt ;\
Expand All @@ -360,10 +360,9 @@ gurutime: $(GTT) $(GTTF)
for i in $(GTT) $(GTTF); do $$i 100 1 2 1e2 1e2 0 1e6 1e-3 1 0 0 2; done

# This was for a CCQ application... (zgemm was 10x faster! double-prec only)
perftest/manysmallprobs: perftest/manysmallprobs.cpp $(STATICLIB)
$(CXX) $(CXXFLAGS) ${LDFLAGS} $< $(STATICLIB) $(LIBSFFT) -o $@
@echo "manysmallprobs: single-thread..."
OMP_NUM_THREADS=1 $@
manysmallprobs: perftest/manysmallprobs
@echo "run manysmallprobs, double-prec, single-thread..."
OMP_NUM_THREADS=1 perftest/manysmallprobs



Expand Down
9 changes: 3 additions & 6 deletions perftest/manysmallprobs.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@

#include <complex>

// public header
#include "finufft.h"
#include "finufft/test_defs.h"

// private access to timer
#include "finufft/finufft_utils.hpp"
// private access to timer, etc
#include "finufft/test_defs.h"
using namespace finufft::utils;

using namespace std;

using namespace finufft::utils;

int main(int argc, char *argv[])
/* What is small-problem cost of FINUFFT library from C++, using plain
arrays of C++ complex numbers? Barnett 10/31/17.
Expand Down

0 comments on commit b23a7f7

Please sign in to comment.