Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cuda_lab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
cuda_lab
Commits
5ebedc0a
Commit
5ebedc0a
authored
Mar 30, 2014
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the GUI code with fix for texture
Signed-off-by:
Gaurav Kukreja
<
gmkukreja@gmail.com
>
parent
949b96a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
kernel.cu
miklos/project_integration_gui/kernel.cu
+4
-4
No files found.
miklos/project_integration_gui/kernel.cu
View file @
5ebedc0a
...
...
@@ -116,16 +116,16 @@ void allocate_device_memory(float *d_in, size_t w, size_t h)
cudaMalloc(&d_Xj, imageBytes);
// Define texture attributes
texRef_Xi.addressMode[0] = cudaAddressMode
Clamp
; // clamp x to border
texRef_Xi.addressMode[1] = cudaAddressMode
Clamp
; // clamp y to border
texRef_Xi.addressMode[0] = cudaAddressMode
Border
; // clamp x to border
texRef_Xi.addressMode[1] = cudaAddressMode
Border
; // clamp y to border
texRef_Xi.filterMode = cudaFilterModeLinear; // linear interpolation
texRef_Xi.normalized = false;
cudaChannelFormatDesc desc_Xi = cudaCreateChannelDesc<float>();
cudaBindTexture2D(NULL, &texRef_Xi, d_Xi, &desc_Xi, w, h, w*sizeof(d_Xi[0]));
// Define texture attributes
texRef_Xj.addressMode[0] = cudaAddressMode
Clamp
; // clamp x to border
texRef_Xj.addressMode[1] = cudaAddressMode
Clamp
; // clamp y to border
texRef_Xj.addressMode[0] = cudaAddressMode
Border
; // clamp x to border
texRef_Xj.addressMode[1] = cudaAddressMode
Border
; // clamp y to border
texRef_Xj.filterMode = cudaFilterModeLinear; // linear interpolation
texRef_Xj.normalized = false;
cudaChannelFormatDesc desc_Xj = cudaCreateChannelDesc<float>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment