Skip to content

Commit

Permalink
2D/3D fix to DP texture hack
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Apr 28, 2014
1 parent 9e071c6 commit cf4a4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycuda/cuda/pycuda-helpers.hpp
Expand Up @@ -42,7 +42,7 @@ extern "C++" {
}

template <enum cudaTextureReadMode read_mode>
__device__ double fp_tex3D(texture<fp_tex_double, 2, read_mode> tex, int i, int j, int k)
__device__ double fp_tex3D(texture<fp_tex_double, 3, read_mode> tex, int i, int j, int k)
{
fp_tex_double v = tex3D(tex, i, j, k);
return __hiloint2double(v.y, v.x);
Expand Down

0 comments on commit cf4a4e3

Please sign in to comment.