Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoDee committed Oct 20, 2023
1 parent eb87a11 commit 66f48f9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace cms {
template <typename Hist, typename V, typename Func>
ALPAKA_FN_ACC ALPAKA_FN_INLINE void forEachInBins(Hist const &hist, V value, int n, Func func) {
int bs = Hist::bin(value);
int be = std::min(int(Hist::totbins() - 1), bs + n);
int be = std::min(int(Hist::nbins() - 1), bs + n);
bs = std::max(0, bs - n);
ALPAKA_ASSERT_OFFLOAD(be >= bs);
for (auto pj = hist.begin(bs); pj < hist.end(be); ++pj) {
Expand Down
4 changes: 2 additions & 2 deletions HeterogeneousCore/AlpakaInterface/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
<flags ALPAKA_BACKENDS="1"/>
</bin>

<bin name="alpakaTestOneHistoContainer" file="alpaka/testOneHistoContainer.dev.cc">
<!-- <bin name="alpakaTestOneHistoContainer" file="alpaka/testOneHistoContainer.dev.cc">
<use name="alpaka"/>
<use name="HeterogeneousCore/AlpakaInterface"/>
<flags ALPAKA_BACKENDS="1"/>
</bin>
</bin> COMMENTED, SOLVED IN 43064-->

<bin name="alpakaTestOneToManyAssoc" file="alpaka/testOneToManyAssoc.dev.cc">
<use name="alpaka"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct mykernel {
printf("start kernel for %d data\n", N);
}


using Hist = HistoContainer<T, NBINS, 12000, S, uint16_t>;

auto& hist = alpaka::declareSharedVar<Hist, __COUNTER__>(acc);
Expand Down
6 changes: 3 additions & 3 deletions RecoTracker/PixelVertexFinding/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@
<use name="alpaka"/>
<use name="HeterogeneousCore/AlpakaInterface"/>
<flags ALPAKA_BACKENDS="1"/>
<flags CXX_FLAGS="-g -DGPU_DEBUG"/>
<flags CXXFLAGS="-g -DGPU_DEBUG"/>
</bin>

<bin file="alpaka/VertexFinder_t.cc alpaka/VertexFinder_t.dev.cc" name="deviceVertexFinderDBSCAN_t">
<use name="alpaka"/>
<use name="HeterogeneousCore/AlpakaInterface"/>
<flags ALPAKA_BACKENDS="1"/>
<flags CXX_FLAGS="-g -DGPU_DEBUG -DUSE_DBSCAN"/>
<flags CXXFLAGS="-g -DGPU_DEBUG -DUSE_DBSCAN"/>
</bin>

<bin file="alpaka/VertexFinder_t.cc alpaka/VertexFinder_t.dev.cc" name="deviceVertexFinderIterative_t">
<use name="alpaka"/>
<use name="HeterogeneousCore/AlpakaInterface"/>
<flags ALPAKA_BACKENDS="1"/>
<flags CXX_FLAGS="-g -DGPU_DEBUG -DUSE_ITERATIVE"/>
<flags CXXFLAGS="-g -DGPU_DEBUG -DUSE_ITERATIVE"/>
</bin>


Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "RecoTracker/PixelVertexFinding/plugins/alpaka/clusterTracksDBSCAN.h"
#define CLUSTERIZE ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::clusterTracksDBSCAN
#elif USE_ITERATIVE
#include "RecoTracker/PixelVertexFinding/plugins/alpaka/clusterTracksIterativeAlpaka.h"
#include "RecoTracker/PixelVertexFinding/plugins/alpaka/clusterTracksIterative.h"
#define CLUSTERIZE ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::clusterTracksIterative
#else
#include "RecoTracker/PixelVertexFinding/plugins/alpaka/clusterTracksByDensity.h"
Expand Down

0 comments on commit 66f48f9

Please sign in to comment.