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
14d7689b
Commit
14d7689b
authored
Apr 08, 2025
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More methods replacing flat code
parent
dc090454
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
306 additions
and
4 deletions
+306
-4
TpHostGpu.cu
src/TpHostGpu.cu
+298
-2
TpHostGpu.h
src/TpHostGpu.h
+2
-1
TpParams.h
src/TpParams.h
+6
-1
No files found.
src/TpHostGpu.cu
View file @
14d7689b
This diff is collapsed.
Click to expand it.
src/TpHostGpu.h
View file @
14d7689b
...
@@ -122,7 +122,7 @@ public:
...
@@ -122,7 +122,7 @@ public:
void
setTextures
();
void
setTextures
();
void
setRGBA
();
void
setRGBA
();
void
testRotMatrices
(
int
num_runs
);
// 424
trot_deriv
testRotMatrices
(
int
num_runs
);
// 424
void
testReverseDistortions
(
int
num_runs
);
// 468
void
testReverseDistortions
(
int
num_runs
);
// 468
void
testGeomCorrect
(
int
num_runs
);
// 534
void
testGeomCorrect
(
int
num_runs
);
// 534
void
testConvertDirect
(
int
num_runs
);
// 608
void
testConvertDirect
(
int
num_runs
);
// 608
...
@@ -133,6 +133,7 @@ public:
...
@@ -133,6 +133,7 @@ public:
void
testCorrelate2DIntra
(
int
num_runs
);
void
testCorrelate2DIntra
(
int
num_runs
);
void
testCorrelate2DInterSelf
(
int
num_runs
);
void
testCorrelate2DInterSelf
(
int
num_runs
);
void
saveClt
(
const
char
**
paths
,
const
char
*
prompt
,
float
**
gpu_clt_h
);
// for both intra and inter!
// for both intra and inter!
void
saveIntraCorrFile
(
const
char
*
path
,
const
char
*
prompt
,
int
num_corrs
,
int
num_corr_indices
,
float
*
gpu_corrs
,
int
*
gpu_corr_indices
,
int
num_sel_sensors
);
void
saveIntraCorrFile
(
const
char
*
path
,
const
char
*
prompt
,
int
num_corrs
,
int
num_corr_indices
,
float
*
gpu_corrs
,
int
*
gpu_corr_indices
,
int
num_sel_sensors
);
void
saveInterCorrFile
(
const
char
*
path
,
const
char
*
prompt
,
int
num_corrs
,
int
num_corr_indices
,
float
*
gpu_corrs_td
,
int
*
gpu_corr_indices
,
int
num_sel_sensors
);
void
saveInterCorrFile
(
const
char
*
path
,
const
char
*
prompt
,
int
num_corrs
,
int
num_corr_indices
,
float
*
gpu_corrs_td
,
int
*
gpu_corr_indices
,
int
num_sel_sensors
);
...
...
src/TpParams.h
View file @
14d7689b
...
@@ -24,6 +24,9 @@ public:
...
@@ -24,6 +24,9 @@ public:
static
constexpr
int
kernels_hor
=
KERNELS_HOR
;
static
constexpr
int
kernels_hor
=
KERNELS_HOR
;
static
constexpr
int
kernels_vert
=
KERNELS_VERT
;
static
constexpr
int
kernels_vert
=
KERNELS_VERT
;
static
constexpr
int
rbyrdist_len
=
RBYRDIST_LEN
;
static
constexpr
int
tiles_per_block_geom
=
TILES_PER_BLOCK_GEOM
;
//
static
constexpr
int
task_inter_en
=
TASK_INTER_EN
;
// 10 // Task bit to enable interscene correlation
static
constexpr
int
task_inter_en
=
TASK_INTER_EN
;
// 10 // Task bit to enable interscene correlation
static
constexpr
int
task_corr_en
=
TASK_CORR_EN
;
// 9 // Task bit to enable intrascene correlation (pairs defined separately)
static
constexpr
int
task_corr_en
=
TASK_CORR_EN
;
// 9 // Task bit to enable intrascene correlation (pairs defined separately)
static
constexpr
int
task_text_en
=
TASK_TEXT_EN
;
// 8 // task bit to enable texture generation
static
constexpr
int
task_text_en
=
TASK_TEXT_EN
;
// 8 // task bit to enable texture generation
...
@@ -46,12 +49,14 @@ public:
...
@@ -46,12 +49,14 @@ public:
static
constexpr
int
tp_task_centerxy_offset
=
TP_TASK_CENTERXY_OFFSET
;
// 3
static
constexpr
int
tp_task_centerxy_offset
=
TP_TASK_CENTERXY_OFFSET
;
// 3
static
constexpr
int
tp_task_scale_offset
=
TP_TASK_SCALE_OFFSET
;
// 5
static
constexpr
int
tp_task_scale_offset
=
TP_TASK_SCALE_OFFSET
;
// 5
static
constexpr
int
tp_task_xy_offset
=
TP_TASK_XY_OFFSET
;
// 6
static
constexpr
int
tp_task_xy_offset
=
TP_TASK_XY_OFFSET
;
// 6
static
constexpr
float
fat_zero
=
1000
.
0
f
;
// 300.0f; // 30.0;
static
constexpr
float
fat_zero
=
1000
.
0
f
;
// 300.0f; // 30.0;
#ifdef DBG_TILE
#ifdef DBG_TILE
static
constexpr
int
debug_tile
{
1
};
static
constexpr
int
debug_tile
{
1
};
static
constexpr
int
dbg_tile
{
DBG_TILE
};
#else
#else
static
constexpr
int
debug_tile
{
0
};
static
constexpr
int
debug_tile
{
0
};
static
constexpr
int
dbg_tile
{
-
1
};
#endif
#endif
private
:
private
:
...
...
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