fixes
This commit is contained in:
parent
37bfcadf35
commit
7852214981
1 changed files with 4 additions and 4 deletions
|
@ -125,7 +125,7 @@ int main(int argc, char **argv)
|
||||||
int master=(mytask==0);
|
int master=(mytask==0);
|
||||||
|
|
||||||
sharp_module_startup("sharp_bench2",argc,7,
|
sharp_module_startup("sharp_bench2",argc,7,
|
||||||
"<healpix|ecp|gauss> <lmax> <nside|nphi> <a2m/m2a> <spin> <ntrans>",master);
|
"<healpix|ecp|gauss> <lmax> <nside|nphi> <a2m/m2a> <spin> <ntrans>",0);
|
||||||
|
|
||||||
int lmax=atoi(argv[2]);
|
int lmax=atoi(argv[2]);
|
||||||
sharp_jobtype jtype = (strcmp(argv[4],"a2m")==0) ?
|
sharp_jobtype jtype = (strcmp(argv[4],"a2m")==0) ?
|
||||||
|
@ -184,8 +184,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
double time=1e20;
|
double time=1e20;
|
||||||
unsigned long long opcnt=0;
|
unsigned long long opcnt=0;
|
||||||
int ntries;
|
for (int ntries=0; (ntries<2)||(ntries*time<5); ++ntries)
|
||||||
for (ntries=0; (ntries<2)||(ntries*time<5); ++ntries)
|
|
||||||
{
|
{
|
||||||
double ltime;
|
double ltime;
|
||||||
unsigned long long lopcnt;
|
unsigned long long lopcnt;
|
||||||
|
@ -195,7 +194,6 @@ int ntries;
|
||||||
ltime=maxTime(ltime);
|
ltime=maxTime(ltime);
|
||||||
if (ltime<time) { time=ltime; opcnt=totalops(lopcnt); }
|
if (ltime<time) { time=ltime; opcnt=totalops(lopcnt); }
|
||||||
}
|
}
|
||||||
if (master) printf("%d tries\n",ntries);
|
|
||||||
DEALLOC2D(map);
|
DEALLOC2D(map);
|
||||||
DEALLOC2D(alm);
|
DEALLOC2D(alm);
|
||||||
|
|
||||||
|
@ -217,6 +215,8 @@ if (master) printf("%d tries\n",ntries);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include "c_utils.h"
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{ UTIL_FAIL("Need OpenMP and MPI"); return 1; }
|
{ UTIL_FAIL("Need OpenMP and MPI"); return 1; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue