Skip to content

Commit

Permalink
making the #791 fail
Browse files Browse the repository at this point in the history
  • Loading branch information
sithhell authored and hkaiser committed Jul 11, 2013
1 parent f4c250a commit 5d5268c
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 deletions tests/regressions/lcos/regression_dataflow_791.cpp
Expand Up @@ -25,13 +25,6 @@ using hpx::lcos::local::dataflow;
using hpx::util::unwrapped;

struct block {
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & size;
ar & start;
ar & height;
}
int size;
int start;
int height;
Expand All @@ -53,39 +46,21 @@ void InitMatrix3();
void initLoop(int i);


HPX_PLAIN_ACTION( ProcessBlockOnColumn, column_action );
HPX_PLAIN_ACTION( ProcessBlockOnRow, row_action );
HPX_PLAIN_ACTION( ProcessInnerBlock, innerBlock_action );
HPX_PLAIN_ACTION( initLoop, init_action );
HPX_PLAIN_ACTION( ProcessDiagonalBlock, diag_action );

vector<double> A;
vector<double> L;
vector<double> U;
int size = 100;
int size = 1000;

boost::uint64_t get_tick_count()
{
return hpx::util::high_resolution_clock::now() / 1000;
}

int main(int argc, char *argv[])
{
// We force this test to use several threads by default.
using namespace boost::assign;
std::vector<std::string> cfg;
cfg += "hpx.os_threads=" +
boost::lexical_cast<std::string>(hpx::threads::hardware_concurrency());

// Initialize and run HPX
return hpx::init(argc, argv, cfg);
}

int hpx_main (int argc, char *argv[])
{
boost::uint64_t t1, t2;
vector<double> originalA;
int numBlocks = 1;
int numBlocks = 20;

if( argc > 1 )
size = atoi(argv[1]);
Expand Down Expand Up @@ -119,6 +94,18 @@ int hpx_main (int argc, char *argv[])
return hpx::finalize();
}

int main(int argc, char *argv[])
{
// We force this test to use several threads by default.
using namespace boost::assign;
std::vector<std::string> cfg;
cfg += "hpx.os_threads=" +
boost::lexical_cast<std::string>(hpx::threads::hardware_concurrency());

// Initialize and run HPX
return hpx::init(argc, argv, cfg);
}

void LU( int numBlocks)
{
printf("LU\n");
Expand Down

0 comments on commit 5d5268c

Please sign in to comment.