mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 13:10:04 -05:00
Merge branch 'master' of https://bitbucket.org/mfeemster/fractorium
This commit is contained in:
commit
a2a5479c81
@ -74,12 +74,6 @@ This will download and build `glm libopenexr libpng libxml tbb zlib`. You will h
|
||||
│
|
||||
├─Deps
|
||||
│
|
||||
├─Include
|
||||
│
|
||||
├─OpenEXR
|
||||
│
|
||||
├─*.h
|
||||
│
|
||||
├─libjpeg.lib
|
||||
├─libpng.lib
|
||||
├─libxml2.lib
|
||||
|
@ -249,10 +249,7 @@ static constexpr char CarToRasFunctionString[] =
|
||||
"}\n"
|
||||
"\n";
|
||||
|
||||
static string AtomicString()
|
||||
{
|
||||
ostringstream os;
|
||||
os <<
|
||||
static constexpr char AtomicString[] =
|
||||
"void AtomicAdd(volatile __global real_bucket_t* source, const real_bucket_t operand)\n"
|
||||
"{\n"
|
||||
" union\n"
|
||||
@ -273,6 +270,5 @@ static string AtomicString()
|
||||
" newVal.realVal = prevVal.realVal + operand;\n"
|
||||
" } while (atomic_cmpxchg((volatile __global atomi*)source, prevVal.intVal, newVal.intVal) != prevVal.intVal);\n"
|
||||
"}\n";
|
||||
return os.str();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -334,7 +334,7 @@ string IterOpenCLKernelCreator<T>::CreateIterKernelString(const Ember<T>& ember,
|
||||
CarToRasFunctionString;
|
||||
|
||||
if (lockAccum)
|
||||
os << AtomicString();
|
||||
os << AtomicString;
|
||||
|
||||
os <<
|
||||
xformFuncs.str() <<
|
||||
|
Loading…
Reference in New Issue
Block a user