--Bug fixes

-Fix OpenCL compilation bugs in a few variations.

--Code changes
 -Pre/post variations are now checked for precalcs when creating the OpenCL kernel code.
 -Change some enumeration t
This commit is contained in:
Person
2019-12-31 23:01:30 -08:00
parent 96d72004fc
commit 9577d580cc
7 changed files with 66 additions and 68 deletions

View File

@ -572,6 +572,10 @@ string IterOpenCLKernelCreator<T>::GlobalFunctionsString(const Ember<T>& ember)
{
auto names = var->OpenCLGlobalFuncNames();
if (var->NeedPrecalcAngles())
if (!Contains(funcNames, zeps))
funcNames.push_back(zeps);
for (auto& name : names)
if (!Contains(funcNames, name))
funcNames.push_back(name);