11/* Copyright (c) 2012-2014 University of Cape Town
2- * Copyright (c) 2014 Bruce Merry
2+ * Copyright (c) 2014, 2018 Bruce Merry
33 *
44 * Permission is hereby granted, free of charge, to any person obtaining a copy
55 * of this software and associated documentation files (the "Software"), to deal
3838#include < algorithm>
3939#include < vector>
4040#include < utility>
41+ #include < random>
42+ #include < functional>
4143#include < clogs/visibility_pop.h>
4244
4345#include < clogs/core.h>
4749#include " parameters.h"
4850#include " tune.h"
4951#include " cache.h"
50- #include " tr1_random.h"
51- #include " tr1_functional.h"
5252
5353namespace clogs
5454{
@@ -459,7 +459,7 @@ static cl::Buffer makeRandomBuffer(const cl::CommandQueue &queue, ::size_t size)
459459 cl::Buffer buffer (queue.getInfo <CL_QUEUE_CONTEXT>(), CL_MEM_READ_WRITE, size);
460460 cl_uchar *data = reinterpret_cast <cl_uchar *>(
461461 queue.enqueueMapBuffer (buffer, CL_TRUE, CL_MAP_WRITE, 0 , size));
462- RANDOM_NAMESPACE ::mt19937 engine;
462+ std ::mt19937 engine;
463463 for (::size_t i = 0 ; i < size; i++)
464464 {
465465 /* We take values directly from the engine rather than using a
@@ -665,10 +665,10 @@ RadixsortParameters::Value Radixsort::tune(
665665 params.reduceWorkGroupSize = reduceWorkGroupSize;
666666 sets.push_back (params);
667667 }
668- using namespace FUNCTIONAL_NAMESPACE ::placeholders;
668+ using namespace std ::placeholders;
669669 cand = boost::any_cast<RadixsortParameters::Value>(tuneOne (
670670 policy, device, sets, problemSizes,
671- FUNCTIONAL_NAMESPACE ::bind (&Radixsort::tuneReduceCallback, _1, _2, _3, _4, problem)));
671+ std ::bind (&Radixsort::tuneReduceCallback, _1, _2, _3, _4, problem)));
672672 }
673673
674674 // Tune the scatter kernel
@@ -687,10 +687,10 @@ RadixsortParameters::Value Radixsort::tune(
687687 sets.push_back (params);
688688 }
689689 }
690- using namespace FUNCTIONAL_NAMESPACE ::placeholders;
690+ using namespace std ::placeholders;
691691 cand = boost::any_cast<RadixsortParameters::Value>(tuneOne (
692692 policy, device, sets, problemSizes,
693- FUNCTIONAL_NAMESPACE ::bind (&Radixsort::tuneScatterCallback, _1, _2, _3, _4, problem)));
693+ std ::bind (&Radixsort::tuneScatterCallback, _1, _2, _3, _4, problem)));
694694 }
695695
696696 // Tune the block count
@@ -729,10 +729,10 @@ RadixsortParameters::Value Radixsort::tune(
729729 sets.push_back (params);
730730 }
731731
732- using namespace FUNCTIONAL_NAMESPACE ::placeholders;
732+ using namespace std ::placeholders;
733733 cand = boost::any_cast<RadixsortParameters::Value>(tuneOne (
734734 policy, device, sets, problemSizes,
735- FUNCTIONAL_NAMESPACE ::bind (&Radixsort::tuneBlocksCallback, _1, _2, _3, _4, problem)));
735+ std ::bind (&Radixsort::tuneBlocksCallback, _1, _2, _3, _4, problem)));
736736 }
737737
738738 // TODO: benchmark the whole combination
0 commit comments