Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tile_processor_gpu
Project
Project
Details
Activity
Releases
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
Elphel
tile_processor_gpu
Commits
40239aff
Commit
40239aff
authored
Nov 25, 2021
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated all kernels, test_tp remaining
parent
a51d6a77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
geometry_correction.cu
src/geometry_correction.cu
+5
-4
No files found.
src/geometry_correction.cu
View file @
40239aff
...
@@ -156,15 +156,16 @@ extern "C" __global__ void calc_rot_deriv(
...
@@ -156,15 +156,16 @@ extern "C" __global__ void calc_rot_deriv(
float zoom;
float zoom;
int ncam = blockIdx.x; // threadIdx.z;
int ncam = blockIdx.x; // threadIdx.z;
int nangle1 = threadIdx.x + threadIdx.y * blockDim.x; // * >> 1;
int nangle1 = threadIdx.x + threadIdx.y * blockDim.x; // * >> 1;
int nangle = nangle1 >> 1;
int nangle = nangle1 >> 1;
// 0: az, 1: tilt, 2: roll, 3:roll
int is_sin = nangle1 & 1;
int is_sin = nangle1 & 1;
if ((threadIdx.z == 0) && (nangle < 4)){ // others just idle here
if ((threadIdx.z == 0) && (nangle < 4)){ // others just idle here
float * gangles = (float *) gpu_correction_vector + angles_offsets[nangle]; // pointer for channel 0
float * gangles = (float *) gpu_correction_vector + angles_offsets[nangle]; // pointer for channel 0
if (ncam == (NUM_CAMS-1)){ // for the whole block
/// if (ncam == (NUM_CAMS-1)){ // for the whole block
if (ncam == (num_cams-1)){ // for the whole block
angle = 0.0;
angle = 0.0;
zoom = 0.0;
zoom = 0.0;
#pragma unroll
/// for (int n = 0; n < (NUM_CAMS-1); n++){
for (int n = 0; n < (
NUM_CAMS
-1); n++){
for (int n = 0; n < (
num_cams
-1); n++){
angle -= *(gangles + n);
angle -= *(gangles + n);
zoom -= gpu_correction_vector->zoom[n];
zoom -= gpu_correction_vector->zoom[n];
}
}
...
...
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