Skip to content
Snippets Groups Projects
Commit b3201b16 authored by Martin Bauer's avatar Martin Bauer
Browse files

Bugfix in createLatticeBoltzmannFunction

parent 3b82aa10
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ def createLatticeBoltzmannAst(updateRule=None, optimizationParams={}, **kwargs): ...@@ -185,7 +185,7 @@ def createLatticeBoltzmannAst(updateRule=None, optimizationParams={}, **kwargs):
params['optimizationParams'] = optimizationParams params['optimizationParams'] = optimizationParams
updateRule = createLatticeBoltzmannUpdateRule(**params) updateRule = createLatticeBoltzmannUpdateRule(**params)
fieldTypes = set(fa.field.dtype for fa in updateRule.freeSymbols if isinstance(fa, Field.Access)) fieldTypes = set(fa.field.dtype for fa in updateRule.definedSymbols if isinstance(fa, Field.Access))
res = createKernel(updateRule, target=optParams['target'], dataType=collateTypes(fieldTypes), res = createKernel(updateRule, target=optParams['target'], dataType=collateTypes(fieldTypes),
cpuOpenMP=optParams['openMP'], cpuVectorizeInfo=optParams['vectorization'], cpuOpenMP=optParams['openMP'], cpuVectorizeInfo=optParams['vectorization'],
gpuIndexing=optParams['gpuIndexing'], gpuIndexingParams=optParams['gpuIndexingParams'], gpuIndexing=optParams['gpuIndexing'], gpuIndexingParams=optParams['gpuIndexingParams'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment