Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
6a300e5a
Commit
6a300e5a
authored
May 15, 2020
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated gpu kernels - adding comments
parent
0182bb3c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
563 additions
and
234 deletions
+563
-234
GPUTileProcessor.java
src/main/java/com/elphel/imagej/gpu/GPUTileProcessor.java
+2
-2
TileProcessor.cuh
src/main/resources/kernels/TileProcessor.cuh
+561
-231
geometry_correction.cu
src/main/resources/kernels/geometry_correction.cu
+0
-1
No files found.
src/main/java/com/elphel/imagej/gpu/GPUTileProcessor.java
View file @
6a300e5a
...
...
@@ -1288,8 +1288,8 @@ public class GPUTileProcessor {
Pointer
.
to
(
gpu_tasks
),
// struct tp_task * gpu_tasks,
Pointer
.
to
(
new
int
[]
{
num_task_tiles
}),
// int num_tiles, // number of tiles in task list
// declare arrays in device code?
Pointer
.
to
(
gpu_texture_indices_ovlp
),
// int * gpu_texture_indices_ovlp,// packed tile + bits (now only (1 << 7)
Pointer
.
to
(
gpu_num_texture_ovlp
),
// int * num_texture_tiles, // number of texture tiles to process (8 elements)
Pointer
.
to
(
gpu_texture_indices_ovlp
),
// int * gpu_texture_indices_ovlp,// packed tile + bits (now only (1 << 7)
Pointer
.
to
(
gpu_num_texture_ovlp
),
// int * num_texture_tiles, // number of texture tiles to process (8 elements)
Pointer
.
to
(
gpu_woi
),
// int * woi, // x,y,width,height of the woi
// set smaller for LWIR - it is used to reduce work aread
Pointer
.
to
(
new
int
[]
{
IMG_WIDTH
/
DTT_SIZE
}),
// int width, // <= TILESX, use for faster processing of LWIR images (should be actual + 1)
...
...
src/main/resources/kernels/TileProcessor.cuh
View file @
6a300e5a
This diff is collapsed.
Click to expand it.
src/main/resources/kernels/geometry_correction.cu
View file @
6a300e5a
...
...
@@ -131,7 +131,6 @@ extern "C" __global__ void calc_rot_deriv(
struct
corr_vector
*
gpu_correction_vector
,
trot_deriv
*
gpu_rot_deriv
)
{
// __shared__ float zoom;
__shared__
float
sincos
[
4
][
2
];
// {az,tilt,roll, d_az, d_tilt, d_roll, d_az}{cos,sin}
__shared__
float
matrices
[
5
+
7
+
4
][
3
][
3
];
float
angle
;
...
...
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