From ffae024cda47f0ee9bdcb0edd691176534a4585d Mon Sep 17 00:00:00 2001 From: raver119 Date: Tue, 10 Sep 2019 07:46:35 +0300 Subject: [PATCH] disable threadlocal for apple Signed-off-by: raver119 --- libnd4j/include/execution/cpu/LaunchContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnd4j/include/execution/cpu/LaunchContext.cpp b/libnd4j/include/execution/cpu/LaunchContext.cpp index 60e29c7ca..7b3070085 100644 --- a/libnd4j/include/execution/cpu/LaunchContext.cpp +++ b/libnd4j/include/execution/cpu/LaunchContext.cpp @@ -23,7 +23,7 @@ #include #include -#ifdef IOS_BUILD +#if defined(IOS_BUILD) || defined(APPLE_BUILD) || defined(ANDROID_BUILD) nd4j::ContextBuffers contextBuffers = nd4j::ContextBuffers(); #else thread_local nd4j::ContextBuffers contextBuffers = nd4j::ContextBuffers();