Skip to content

Commit

Permalink
Remove unused SIFT GPU cuda texture reference (colmap#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojnnes authored Mar 1, 2023
1 parent 64916f8 commit 78c12b4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/SiftGPU/ProgramCU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1683,9 +1683,6 @@ void ProgramCU::MultiplyDescriptorG(CuTexImage* des1, CuTexImage* des2,
MatH, hdistmax, MatF, fdistmax);
}


texture<int, 1, cudaReadModeElementType> texDOT;

#define ROWMATCH_BLOCK_WIDTH 32
#define ROWMATCH_BLOCK_HEIGHT 1

Expand Down Expand Up @@ -1755,15 +1752,12 @@ void ProgramCU::GetRowMatch(CuTexImage* texDot, CuTexImage* texMatch, float dist
int num2 = texDot->GetImgWidth();
dim3 grid(1, num1/ROWMATCH_BLOCK_HEIGHT);
dim3 block(ROWMATCH_BLOCK_WIDTH, ROWMATCH_BLOCK_HEIGHT);
// texDot->BindTexture(texDOT);
RowMatch_Kernel<<<grid, block>>>((int*)texDot->_cuData,
(int*)texMatch->_cuData, num2, distmax, ratiomax);
}

#define COLMATCH_BLOCK_WIDTH 32

//texture<int3, 1, cudaReadModeElementType> texCT;

void __global__ ColMatch_Kernel(int3*d_crt, int* d_result, int height, int num2, float distmax, float ratiomax)
{
int col = COLMATCH_BLOCK_WIDTH * blockIdx.x + threadIdx.x;
Expand Down

0 comments on commit 78c12b4

Please sign in to comment.