Fixed inconsistency in the acGridLoad parameter order
This commit is contained in:
@@ -126,8 +126,12 @@ main(int argc, char** argv)
|
||||
|
||||
// GPU alloc & compute
|
||||
acGridInit(info);
|
||||
AcMesh model;
|
||||
acMeshCreate(info, &model);
|
||||
acMeshRandomize(&model);
|
||||
acGridLoadMesh(STREAM_DEFAULT, model);
|
||||
/*
|
||||
acGridLoadMesh(model, STREAM_DEFAULT);
|
||||
acGridLoadMesh(STREAM_DEFAULT, model);
|
||||
|
||||
acGridIntegrate(STREAM_DEFAULT, FLT_EPSILON);
|
||||
acGridPeriodicBoundconds(STREAM_DEFAULT);
|
||||
@@ -149,7 +153,6 @@ main(int argc, char** argv)
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
// Percentiles
|
||||
const size_t num_iters = 1000;
|
||||
const double nth_percentile = 0.90;
|
||||
@@ -189,11 +192,11 @@ main(int argc, char** argv)
|
||||
ERRCHK_ALWAYS(fp);
|
||||
// Format
|
||||
// nprocs, min, 50th perc, 90th perc, max
|
||||
fprintf(fp, "%d, %g, %g, %g, %g\n", nprocs, results[0], results[0.5 * num_iters], results[nth_percentile * num_iters], results[num_iters-1]);
|
||||
fprintf(fp, "%d, %g, %g, %g, %g\n", nprocs, results[0], results[0.5 * num_iters],
|
||||
results[nth_percentile * num_iters], results[num_iters - 1]);
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
|
||||
acGridQuit();
|
||||
MPI_Finalize();
|
||||
return EXIT_SUCCESS;
|
||||
|
@@ -51,7 +51,7 @@ main(void)
|
||||
acGridInit(info);
|
||||
|
||||
// INTEGRATION TESTS START ---------------------------------------------------------------------
|
||||
acGridLoadMesh(model, STREAM_DEFAULT);
|
||||
acGridLoadMesh(STREAM_DEFAULT, model);
|
||||
acGridIntegrate(STREAM_DEFAULT, FLT_EPSILON);
|
||||
acGridPeriodicBoundconds(STREAM_DEFAULT);
|
||||
acGridStoreMesh(STREAM_DEFAULT, &candidate);
|
||||
@@ -64,7 +64,7 @@ main(void)
|
||||
// INTEGRATION TESTS END -----------------------------------------------------------------------
|
||||
|
||||
// REDUCTION TESTS START -----------------------------------------------------------------------
|
||||
acGridLoadMesh(model, STREAM_DEFAULT);
|
||||
acGridLoadMesh(STREAM_DEFAULT, model);
|
||||
|
||||
std::vector<AcScalReductionTestCase> scalarReductionTests{
|
||||
acCreateScalReductionTestCase("Scalar MAX", VTXBUF_UUX, RTYPE_MAX),
|
||||
|
Reference in New Issue
Block a user