Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/sys.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Gross <sgross@fb.com>2016-03-31 23:11:38 +0300
committerSam Gross <sgross@fb.com>2016-03-31 23:34:27 +0300
commit6e25ad2dc80ee21ad94ef57ae70cbcb331cf5d1c (patch)
treecf30ea2827df53dc3323eb326ae69763c69509e7 /CMakeLists.txt
parentcadd701a56dc842b2eab5e6c62126ee4d016244b (diff)
Separate sys.COLORS and sys.fpath into their own files
The sys package forks processes when the package is required to determine the OS and prefix. Unfortunately, due to a bug in OpenBLAS, simulatenous calls to fork can deadlock. The torch7 and image packages require sys at intialization, which now makes deadlocks much more common when using Torch threads and OpenBLAS. This moves sys.COLORS and sys.fpath into their own files which can be required independently, so that torch7 and image don't have to require all of sys and fork at initialization.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4a6db3..baa0309 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ CMAKE_POLICY(VERSION 2.6)
FIND_PACKAGE(Torch REQUIRED)
SET(src sys.c)
-SET(luasrc init.lua)
+SET(luasrc init.lua colors.lua fpath.lua)
ADD_TORCH_PACKAGE(sys "${src}" "${luasrc}")