Skip to content

Commit

Permalink
remove unused declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
tromp committed Feb 16, 2020
1 parent 1607877 commit 6000e41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/cuckaroom/mean.cu
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const u32 EDGES_C = NZ * NEPS_C / NEPS;

const u32 ROW_EDGES_A = EDGES_A * NY;
const u32 ROW_EDGES_B = EDGES_B * NY;
const u32 ROW_EDGES_C = EDGES_C * NY;

#define checkCudaErrors_V(ans) ({if (gpuAssert((ans), __FILE__, __LINE__) != cudaSuccess) return;})
#define checkCudaErrors_N(ans) ({if (gpuAssert((ans), __FILE__, __LINE__) != cudaSuccess) return NULL;})
Expand Down Expand Up @@ -145,7 +144,6 @@ struct edgetrimmer {
checkCudaErrors_V(cudaMalloc((void**)&indexesA, indexesSizeNA));
checkCudaErrors_V(cudaMalloc((void**)&indexesB, indexesSizeNA));
checkCudaErrors_V(cudaMalloc((void**)&nodemap, nodemapSize));
assert(bufferSize >= sizeB + ROW_EDGES_C * NX * sizeof(uint2));
checkCudaErrors_V(cudaMalloc((void**)&bufferB, bufferSize));
bufferA = bufferB + sizeB / NA;
bufferA1 = bufferB + sizeB;
Expand Down
4 changes: 0 additions & 4 deletions src/cuckaroom/meaner.cu
Original file line number Diff line number Diff line change
Expand Up @@ -802,11 +802,9 @@ const u32 MAXEDGES = NEDGES >> IDXSHIFT;

const u32 EDGES_A = NZ * NEPS_A / NEPS;
const u32 EDGES_B = NZ * NEPS_B / NEPS;
const u32 EDGES_C = NZ * NEPS_C / NEPS;

const u32 ALL_EDGES_A = EDGES_A * NB;
const u32 ALL_EDGES_B = EDGES_B * NB;
const u32 ALL_EDGES_C = EDGES_C * NB;

#define checkCudaErrors_V(ans) ({if (gpuAssert((ans), __FILE__, __LINE__) != cudaSuccess) return;})
#define checkCudaErrors_N(ans) ({if (gpuAssert((ans), __FILE__, __LINE__) != cudaSuccess) return NULL;})
Expand Down Expand Up @@ -882,8 +880,6 @@ struct edgetrimmer {
checkCudaErrors_V(cudaMalloc((void**)&indexesA, indexesSizeNTLB));
checkCudaErrors_V(cudaMalloc((void**)&indexesB, indexesSizeNMEM + indexesSize));
checkCudaErrors_V(cudaMalloc((void**)&edgemap, edgemapSize));
const size_t sizeC = ALL_EDGES_C * sizeof(uint2);
assert(bufferSize >= sizeB + sizeC);
checkCudaErrors_V(cudaMalloc((void**)&bufferB, bufferSize));
bufferA = bufferB + sizeA / NMEM;
// print_log("allocated %lld bytes bufferB %llx endBuffer %llx\n", bufferSize, bufferB, bufferB+bufferSize);
Expand Down

0 comments on commit 6000e41

Please sign in to comment.