Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redesign-prototype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nektar
redesign-prototype
Commits
e03210e7
Commit
e03210e7
authored
2 years ago
by
Pavol Margitfalvi
Committed by
Chris Cantwell
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make output from main more clear
parent
ced187ef
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Updated code to use a common base class and single factory pattern.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.cpp
+5
-1
5 additions, 1 deletion
main.cpp
with
5 additions
and
1 deletion
main.cpp
+
5
−
1
View file @
e03210e7
...
...
@@ -47,6 +47,8 @@ int main()
// Using a CPU operator with a CUDA mem region should also work
BwdTrans
<>::
create
(
"MatFree"
)
->
apply
(
in
,
out
);
std
::
cout
<<
std
::
endl
;
try
{
// It does not work the other way around though
...
...
@@ -56,7 +58,9 @@ int main()
}
catch
(
std
::
exception
const
&
e
)
{
std
::
cout
<<
e
.
what
()
<<
std
::
endl
;
std
::
cout
<<
"Calling CUDA operator with CPU-backed Field throws an "
"exception of:
\n\t
"
<<
e
.
what
()
<<
std
::
endl
;
}
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment