disable threadlocal for apple

Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2019-09-10 07:46:35 +03:00
parent 5de00682ce
commit ffae024cda
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
#include <exceptions/cuda_exception.h> #include <exceptions/cuda_exception.h>
#include <thread> #include <thread>
#ifdef IOS_BUILD #if defined(IOS_BUILD) || defined(APPLE_BUILD) || defined(ANDROID_BUILD)
nd4j::ContextBuffers contextBuffers = nd4j::ContextBuffers(); nd4j::ContextBuffers contextBuffers = nd4j::ContextBuffers();
#else #else
thread_local nd4j::ContextBuffers contextBuffers = nd4j::ContextBuffers(); thread_local nd4j::ContextBuffers contextBuffers = nd4j::ContextBuffers();