Skip to content

Commit

Permalink
Remove TestInput from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebentley15 committed Jan 27, 2018
1 parent 2fd680a commit 6b3b528
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
33 changes: 0 additions & 33 deletions litmus-tests/tests/langois.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,6 @@

#include <cmath>

//this is a dummy -- needs to be implemented
//the body of a different algo in CUDA is left
//for instructional purposes
// template <typename T>
// GLOBAL
// void
// addNameHere(const flit::CuTestInput<T>* tiList, double* results){
// #ifdef __CUDA__
// auto idx = blockIdx.x * blockDim.x + threadIdx.x;
// #else
// auto idx = 0;
// #endif
// auto ti = tiList[idx];
// T maxval = tiList[idx].vals[0];
// T a = maxval;
// T b = maxval;
// T c = maxval * flit::csqrt((T)2.0);
// const T delta = maxval / (T)ti.iters;
// const T checkVal = (T)0.5 * b * a;

// double score = 0.0;

// for(T pos = 0; pos <= a; pos += delta){
// b = flit::csqrt(flit::cpow(pos, (T)2.0) +
// flit::cpow(maxval, (T)2.0));
// c = flit::csqrt(flit::cpow(a - pos, (T)2.0) +
// flit::cpow(maxval, (T)2.0));
// auto crit = getCArea(a,b,c);
// score += std::abs(crit - checkVal);
// }
// results[idx] = score;
// }

//these are the helpers for the langois compensating algos
//will be executed in their own right as well as supporting
//other tests in this file
Expand Down
2 changes: 1 addition & 1 deletion src/TestBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class TestBase {
*
* If the test input has many more inputs than this, then the run() function
* will run the test as many times as it can with the amount of values given.
* For example, if the test requires 5 inputs, and the TestInput object
* For example, if the test requires 5 inputs, and the vector of test inputs
* passed in has 27 inputs, then the test will be run 5 times, and the last
* two inputs will be unused.
*/
Expand Down

0 comments on commit 6b3b528

Please sign in to comment.