Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
iRMB
VirtualFluids
Commits
60ce91de
Commit
60ce91de
authored
4 years ago
by
LEGOLAS\lenz
Browse files
Options
Downloads
Patches
Plain Diff
set Accumulator type to double to ensure deterministic results
parent
0868f9da
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/GksGpu/Definitions/AccumulatorDataType.h
+12
-2
12 additions, 2 deletions
src/GksGpu/Definitions/AccumulatorDataType.h
with
12 additions
and
2 deletions
src/GksGpu/Definitions/AccumulatorDataType.h
+
12
−
2
View file @
60ce91de
...
...
@@ -3,8 +3,18 @@
namespace
GksGpu
{
typedef
float
realAccumulator
;
//typedef double realAccumulator;
// This file is used to control the data type of accumulator variables.
// Accumulator variables are variables, where cell values are written
// during the flux computation, which is per face. Since the face evaluation
// order on GPUs is arbitrary, the cutoff errors for these accumulators are non
// deterministic. This deficiency can be solved for single precision calculations
// by setting the accumulator data type to double. The deviations are then
// so small, that they are cut off during the downcast to single.
// using double precision accumulators has some performance implications,
// especially on consumer hardware.
//typedef float realAccumulator;
typedef
double
realAccumulator
;
}
// namespace GksGpu
...
...
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