Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
exatn
Commits
af2869b5
Commit
af2869b5
authored
Sep 28, 2021
by
Dmitry I. Lyakh
Browse files
Added more error output to track tensor existence domain issue ...
Signed-off-by:
Dmitry I. Lyakh
<
quant4me@gmail.com
>
parent
fb7a168a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/exatn/num_server.hpp
View file @
af2869b5
...
...
@@ -504,8 +504,10 @@ public:
<<
"Tensor "
<<
tensor_name
<<
" violates this requirement!"
<<
std
::
endl
;
const
auto
&
tensor_domain_ranks
=
tensor_domain
.
getProcessRanks
();
const
auto
&
other_tensors_domain_ranks
=
other_tensors_domain
.
getProcessRanks
();
std
::
cout
<<
tensor_name
<<
":"
<<
std
::
endl
;
for
(
const
auto
&
proc_rank
:
tensor_domain_ranks
)
std
::
cout
<<
" "
<<
proc_rank
;
std
::
cout
<<
std
::
endl
;
print_variadic_pack
(
std
::
forward
<
Args
>
(
tensor_names
)...);
std
::
cout
<<
":"
<<
std
::
endl
;
for
(
const
auto
&
proc_rank
:
other_tensors_domain_ranks
)
std
::
cout
<<
" "
<<
proc_rank
;
std
::
cout
<<
std
::
endl
;
assert
(
false
);
...
...
src/utils/errors.hpp
View file @
af2869b5
/** ExaTN: Error handling
REVISION: 202
0/10
/2
2
REVISION: 202
1/09
/2
7
Copyright (C) 2018-202
0
Dmitry I. Lyakh (Liakh)
Copyright (C) 2018-202
0
Oak Ridge National Laboratory (UT-Battelle) **/
Copyright (C) 2018-202
1
Dmitry I. Lyakh (Liakh)
Copyright (C) 2018-202
1
Oak Ridge National Laboratory (UT-Battelle) **/
#ifndef EXATN_ERRORS_HPP_
#define EXATN_ERRORS_HPP_
...
...
@@ -45,6 +45,18 @@ inline void make_sure(bool condition,
return
;
}
inline
void
print_variadic_pack
()
{
return
;
}
template
<
typename
Arg
,
typename
...
Args
>
inline
void
print_variadic_pack
(
Arg
&&
arg
,
Args
&&
...
args
)
{
std
::
cout
<<
std
::
forward
<
Arg
>
(
arg
)
<<
" "
;
return
print_variadic_pack
(
std
::
forward
<
Args
>
(
args
)...);
}
}
//namespace exatn
#endif //EXATN_ERRORS_HPP_
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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