Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
5291d58e
"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "67dc11971f9f7878e28496dc28382923598557ea"
Commit
5291d58e
authored
Feb 06, 2022
by
Davis King
Browse files
See if this makes the MPC test more reliable on MacOS
parent
c89bf6b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
.github/workflows/build_cmake.yml
.github/workflows/build_cmake.yml
+7
-1
dlib/test/mpc.cpp
dlib/test/mpc.cpp
+1
-1
No files found.
.github/workflows/build_cmake.yml
View file @
5291d58e
...
@@ -29,7 +29,13 @@ jobs:
...
@@ -29,7 +29,13 @@ jobs:
-
name
:
Build just tests
-
name
:
Build just tests
working-directory
:
${{ github.workspace }}/dlib/test
working-directory
:
${{ github.workspace }}/dlib/test
run
:
cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel
4
run
:
|
if [ "$RUNNER_OS" == "macOS" ]; then
# MacOS machines often come with low quality BLAS libraries installed, so don't use those.
cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4 -DDLIB_USE_BLAS=0 -DDLIB_USE_LAPACK=0
else
cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4
fi;
-
name
:
Test
-
name
:
Test
working-directory
:
${{ github.workspace }}/dlib/test/${{ env.build_dir }}
working-directory
:
${{ github.workspace }}/dlib/test/${{ env.build_dir }}
...
...
dlib/test/mpc.cpp
View file @
5291d58e
...
@@ -403,7 +403,7 @@ namespace
...
@@ -403,7 +403,7 @@ namespace
dlog
<<
LINFO
<<
trans
(
alpha2
);
dlog
<<
LINFO
<<
trans
(
alpha2
);
dlog
<<
LINFO
<<
"objective value: "
<<
0.5
*
trans
(
alpha
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha
;
dlog
<<
LINFO
<<
"objective value: "
<<
0.5
*
trans
(
alpha
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha
;
dlog
<<
LINFO
<<
"objective value2: "
<<
0.5
*
trans
(
alpha2
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha2
;
dlog
<<
LINFO
<<
"objective value2: "
<<
0.5
*
trans
(
alpha2
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha2
;
DLIB_TEST_MSG
(
max
(
abs
(
alpha
-
alpha2
))
<
1e-
6
,
max
(
abs
(
alpha
-
alpha2
)));
DLIB_TEST_MSG
(
max
(
abs
(
alpha
-
alpha2
))
<
1e-
7
,
max
(
abs
(
alpha
-
alpha2
)));
}
}
test_with_positive_target_error_thresh
();
test_with_positive_target_error_thresh
();
...
...
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