Skip to content

Commit

Permalink
Change extension of cuda binding file to .cu
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldu committed Jan 23, 2024
1 parent 1176bec commit b39ae0f
Showing 1 changed file with 60 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,39 @@ namespace alpaka_cuda_async {
// Running the clustering algorithm //
switch (Ndim) {
[[unlikely]] case (1) :
return run1(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run1(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[likely]] case (2) :
return run2(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
break;
[[likely]] case (3) :
return run3(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run3(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (4) :
return run4(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run4(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (5) :
return run5(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run5(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (6) :
return run6(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run6(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (7) :
return run7(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run7(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (8) :
return run8(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run8(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (9) :
return run9(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run9(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (10) :
return run10(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run10(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] default:
std::cout << "This library only works up to 10 dimensions\n";
return {};
break;
}
}

Expand All @@ -92,28 +103,39 @@ namespace alpaka_cuda_async {
// Running the clustering algorithm //
switch (Ndim) {
[[unlikely]] case (1) :
return run1(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run1(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[likely]] case (2) :
return run2(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
break;
[[likely]] case (3) :
return run3(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run3(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (4) :
return run4(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run4(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (5) :
return run5(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run5(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (6) :
return run6(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run6(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (7) :
return run7(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run7(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (8) :
return run8(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run8(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (9) :
return run9(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run9(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (10) :
return run10(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run10(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] default:
std::cout << "This library only works up to 10 dimensions\n";
return {};
break;
}
}

Expand All @@ -135,28 +157,39 @@ namespace alpaka_cuda_async {
// Running the clustering algorithm //
switch (Ndim) {
[[unlikely]] case (1) :
return run1(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run1(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[likely]] case (2) :
return run2(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
break;
[[likely]] case (3) :
return run3(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run3(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (4) :
return run4(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run4(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (5) :
return run5(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run5(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (6) :
return run6(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run6(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (7) :
return run7(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run7(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (8) :
return run8(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run8(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (9) :
return run9(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run9(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] case (10) :
return run10(dc, rhoc, outlier, pPBin, coords, weights, kernel, queue_, block_size);
/* return run10(dc, rhoc, outlier, pPBin, coords, weights, queue_); */
break;
[[unlikely]] default:
std::cout << "This library only works up to 10 dimensions\n";
return {};
break;
}
}

Expand Down

0 comments on commit b39ae0f

Please sign in to comment.