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
863f8ba8
Commit
863f8ba8
authored
Mar 28, 2014
by
Miklós Homolya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unnecessary state exposure
parent
9e1f16ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
glwidget.h
miklos/project_integration/glwidget.h
+1
-1
kernel.cu
miklos/project_integration/kernel.cu
+1
-1
kernel.h
miklos/project_integration/kernel.h
+1
-1
main.cpp
miklos/project_integration/main.cpp
+1
-1
No files found.
miklos/project_integration/glwidget.h
View file @
863f8ba8
...
...
@@ -12,7 +12,6 @@ public:
explicit
GlWidget
(
QWidget
*
parent
=
0
);
~
GlWidget
();
QSize
sizeHint
()
const
;
float
*
d_in
;
protected
:
void
initializeGL
();
...
...
@@ -20,6 +19,7 @@ protected:
private
:
QGLFunctions
gl
;
float
*
d_in
;
};
#endif // GLWIDGET_H
miklos/project_integration/kernel.cu
View file @
863f8ba8
...
...
@@ -107,7 +107,7 @@ inline dim3 make_grid(dim3 whole, dim3 block)
static float *d_T, *d_F, *d_Xi, *d_Xj;
void allocate_device_memory(
float *d_in,
size_t w, size_t h)
void allocate_device_memory(size_t w, size_t h)
{
size_t imageBytes = w*h*sizeof(float);
cudaMalloc(&d_T, imageBytes);
...
...
miklos/project_integration/kernel.h
View file @
863f8ba8
#ifndef KERNEL_H
#define KERNEL_H
extern
"C"
void
allocate_device_memory
(
float
*
d_in
,
size_t
width
,
size_t
height
);
extern
"C"
void
allocate_device_memory
(
size_t
width
,
size_t
height
);
extern
"C"
void
executeKernel
(
float
*
d_in
,
void
*
d_out
,
size_t
width
,
size_t
height
);
#endif // KERNEL_H
miklos/project_integration/main.cpp
View file @
863f8ba8
...
...
@@ -17,7 +17,7 @@ int main(int argc, char *argv[])
}
QObject
::
connect
(
&
camera
,
SIGNAL
(
newFrame
()),
&
w
,
SLOT
(
updateGL
()));
allocate_device_memory
(
w
.
d_in
,
camera
.
width
(),
camera
.
height
());
allocate_device_memory
(
camera
.
width
(),
camera
.
height
());
camera
.
start
();
w
.
show
();
...
...
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