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
9bdef093
Commit
9bdef093
authored
Jul 16, 2026
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CODEX: Bypass duplicate double pose LMA solve
Co-authored-by:
Codex
<
codex@elphel.com
>
parent
47efa39f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
163 additions
and
118 deletions
+163
-118
CuasPoseRT.java
src/main/java/com/elphel/imagej/cuas/rt/CuasPoseRT.java
+6
-5
IntersceneLma.java
...n/java/com/elphel/imagej/tileprocessor/IntersceneLma.java
+157
-113
No files found.
src/main/java/com/elphel/imagej/cuas/rt/CuasPoseRT.java
View file @
9bdef093
...
@@ -1042,11 +1042,12 @@ public class CuasPoseRT {
...
@@ -1042,11 +1042,12 @@ public class CuasPoseRT {
numTiles
,
capturePrepared
);
numTiles
,
capturePrepared
);
if
((
result
!=
null
)
&&
!
pose_lma_step_path_reported
)
{
if
((
result
!=
null
)
&&
!
pose_lma_step_path_reported
)
{
pose_lma_step_path_reported
=
true
;
pose_lma_step_path_reported
=
true
;
System
.
out
.
println
(
"CuasPoseRT: resident CUDA float LMA preparation/reduction active "
+
System
.
out
.
println
(
"CuasPoseRT: resident CUDA float LMA candidate active "
+
"(resident raw fx/J reused; Java oracle readback and acceptance retained)"
);
"(raw fx/J reused; Java-double candidate is debug/fallback only; "
+
"Java RMS/acceptance retained)"
);
}
}
return
result
;
return
result
;
});
//
validation rung
: resident raw fx/J -> parallel prepare/reduce -> fixed 3x3 tail // By Codex on 07/15/2026
});
//
production candidate
: resident raw fx/J -> parallel prepare/reduce -> fixed 3x3 tail // By Codex on 07/15/2026
intersceneLma
.
setNormalEquationProvider
((
weights
,
jt
,
ymfxWeighted
)
->
{
intersceneLma
.
setNormalEquationProvider
((
weights
,
jt
,
ymfxWeighted
)
->
{
final
long
profileStart
=
(
rtProfile
!=
null
)
?
rtProfile
.
start
()
:
0L
;
final
long
profileStart
=
(
rtProfile
!=
null
)
?
rtProfile
.
start
()
:
0L
;
final
double
[]
products
=
lmaGpu
.
execLmaNormalProducts
(
weights
,
jt
,
ymfxWeighted
);
final
double
[]
products
=
lmaGpu
.
execLmaNormalProducts
(
weights
,
jt
,
ymfxWeighted
);
...
@@ -1054,10 +1055,10 @@ public class CuasPoseRT {
...
@@ -1054,10 +1055,10 @@ public class CuasPoseRT {
if
((
products
!=
null
)
&&
!
lma_products_path_reported
)
{
if
((
products
!=
null
)
&&
!
lma_products_path_reported
)
{
lma_products_path_reported
=
true
;
lma_products_path_reported
=
true
;
System
.
out
.
println
(
"CuasPoseRT: GPU LMA normal-equation products active "
+
System
.
out
.
println
(
"CuasPoseRT: GPU LMA normal-equation products active "
+
"(lma_normal_products, double
) - 3x3 solve stays on CPU
"
);
"(lma_normal_products, double
debug/fallback oracle)
"
);
}
}
return
products
;
return
products
;
});
//
roadmap rung 3: J^T W J + J^T W(y-f) on GPU; solve/acceptance stay CPU // By Codex on 07/14
/2026
});
//
Java-double debug/fallback oracle; resident float is the lean production candidate // By Codex on 07/15
/2026
double
[][]
scene_xyzatr0
=
new
double
[][]
{
predicted
[
0
].
clone
(),
predicted
[
1
].
clone
()};
double
[][]
scene_xyzatr0
=
new
double
[][]
{
predicted
[
0
].
clone
(),
predicted
[
1
].
clone
()};
double
[][][]
cm
=
null
;
double
[][][]
cm
=
null
;
// lean v2 (Andrey's ruling 07/12/2026): pose_cycles > 0 = run EXACTLY that many
// lean v2 (Andrey's ruling 07/12/2026): pose_cycles > 0 = run EXACTLY that many
...
...
src/main/java/com/elphel/imagej/tileprocessor/IntersceneLma.java
View file @
9bdef093
This diff is collapsed.
Click to expand it.
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