Skip to content

Commit

Permalink
Changed #if __CUDA_ARCH__>300 -> #if __CUDA_ARCH__>=300 as per issue a…
Browse files Browse the repository at this point in the history
  • Loading branch information
ravich2-7183 committed Jan 19, 2017
1 parent e787d43 commit e8f0376
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Cpp/DepthmapDenoiseWeightedHuber/DepthmapDenoiseWeightedHuber.cu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void computeGCaller (float* pp, float* g1p, float* gxp, float* gyp, int cols){
GENERATE_CUDA_FUNC2DROWS(computeG1,
(float* pp, float* g1p, float* gxp, float* gyp, int cols),
(pp, g1p, gxp, gyp, cols)) {
#if __CUDA_ARCH__>300
#if __CUDA_ARCH__>=300
//TODO: make compatible with cuda 2.0 and lower (remove shuffles). Probably through texture fetch

//Original pseudocode for this function:
Expand Down Expand Up @@ -174,7 +174,7 @@ GENERATE_CUDA_FUNC2DROWS(computeG1,
GENERATE_CUDA_FUNC2DROWS(computeG2,
(float* pp, float* g1p, float* gxp, float* gyp, int cols),
(pp, g1p, gxp, gyp, cols)) {
#if __CUDA_ARCH__>300
#if __CUDA_ARCH__>=300
int x = threadIdx.x;
int y = blockIdx.y * blockDim.y + threadIdx.y;
int dnoff=(y<gridDim.y*blockDim.y-1)*cols;
Expand Down Expand Up @@ -251,7 +251,7 @@ GENERATE_CUDA_FUNC2DROWS(computeG2,
GENERATE_CUDA_FUNC2DROWS(computeGunsafe,
(float* pp, float* g1p, float* gxp, float* gyp, int cols),
(pp, g1p, gxp, gyp, cols)) {
#if __CUDA_ARCH__>300
#if __CUDA_ARCH__>=300
//TODO: make compatible with cuda 2.0 and lower (remove shuffles). Probably through texture fetch
//TODO: rerun kernel on lines with y%32==31 or y%32==0 to fix stitch lines

Expand Down Expand Up @@ -685,7 +685,7 @@ GENERATE_CUDA_FUNC2DROWS(updateQ,
// dpt[pt]=d;
// }
//}
#if __CUDA_ARCH__>300
#if __CUDA_ARCH__>=300
__shared__ float s[32*BLOCKY2D];
int x = threadIdx.x;
int y = blockIdx.y * blockDim.y + threadIdx.y;
Expand Down Expand Up @@ -772,7 +772,7 @@ GENERATE_CUDA_FUNC2DROWS(updateD,
float theta),
( gqxpt, gqypt, dpt, apt,
gxpt, gypt, cols, sigma_q, sigma_d, epsilon, theta)) {
#if __CUDA_ARCH__>300
#if __CUDA_ARCH__>=300
//TODO: make compatible with cuda 2.0 and lower (remove shuffles). Probably through texture fetch

//Original pseudocode for this function:
Expand Down

0 comments on commit e8f0376

Please sign in to comment.