Package Details: cntk 2.5.1-2

Git Clone URL: https://aur.archlinux.org/cntk.git (read-only)
Package Base: cntk
Description: Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit
Upstream URL: https://github.com/Microsoft/CNTK
Licenses: custom
Submitter: petronny
Maintainer: petronny
Last Packager: petronny
Votes: 1
Popularity: 0.000473
First Submitted: 2017-10-02 19:16
Last Updated: 2018-05-23 17:32

Dependencies (25)

Required by (0)

Sources (1)

Latest Comments

petronny commented on 2018-05-21 07:08

@kgizdov Uninstall the previous version should work. I will find a way to fix it in PKGBUILD later.

kgizdov commented on 2018-05-20 20:39

The package seems to try to access system libraries during packaging. This looks like a serious bug to me:

==> Starting package()...
Processing ./cntk_gpu-2.5.1-cp36-cp36m-linux_x86_64.whl
Requirement already satisfied: scipy>=0.17 in /usr/lib/python3.6/site-packages (from cntk-gpu==2.5.1)
Requirement already satisfied: numpy>=1.11 in /usr/lib/python3.6/site-packages (from cntk-gpu==2.5.1)
Installing collected packages: cntk-gpu
  Found existing installation: cntk-gpu 2.5
    Uninstalling cntk-gpu-2.5:
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.6/shutil.py", line 544, in move
    os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/usr/lib/python3.6/site-packages/_cntk_py.cpython-36m-x86_64-linux-gnu.so' -> '/tmp/pip-2g4pna3j-uninstall/usr/lib/python3.6/site-packages/_cntk_py.cpython-36m-x86_64-linux-gnu.so'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 778, in install
    requirement.uninstall(auto_confirm=True)
  File "/usr/lib/python3.6/site-packages/pip/req/req_install.py", line 754, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/usr/lib/python3.6/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/usr/lib/python3.6/shutil.py", line 559, in move
    os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.6/site-packages/_cntk_py.cpython-36m-x86_64-linux-gnu.so'

swiftscythe commented on 2018-04-25 15:57

In order to build the latest version, I had to use cub 1.7.4 (and not 1.8.0, currently in AUR) and downgrade openmpi to version 1.1.x (currently using openmpi-cuda)

jerry73204 commented on 2017-12-01 04:42

/tmp/cntk is fine to place lock files or any other temporarily used file. Please upload the patch if possible. Thanks.

petronny commented on 2017-11-03 09:22

Can it be /tmp/cntk?

jerry73204 commented on 2017-11-03 08:24

CNTK currently has permission issue on /var/lock directory. Here is the GitHub link:
https://github.com/Microsoft/CNTK/issues/1719

I created a patch file to resolve it.
----------
diff --git a/Manual/Manual_How_to_debug.ipynb b/Manual/Manual_How_to_debug.ipynb
index c1c07ebca..809cd8023 100644
--- a/Manual/Manual_How_to_debug.ipynb
+++ b/Manual/Manual_How_to_debug.ipynb
@@ -41,9 +41,9 @@
"\n",
"- on Linux\n",
" ```bash\n",
- " $ fuser -k /var/lock/CNTK_exclusive_lock_for_GPU_0\n",
+ " $ fuser -k /run/cntk/CNTK_exclusive_lock_for_GPU_0\n",
" ```\n",
- " will kill the process that created `/var/lock/CNTK_exclusive_lock_for_GPU_0`\n",
+ " will kill the process that created `/run/cntk/CNTK_exclusive_lock_for_GPU_0`\n",
"- on Windows\n",
" * Make sure you have [Process Explorer](https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx)\n",
" * Open Process Explorer and under View -> Select Columns... click on the GPU tab and check all the checkboxes\n",
diff --git a/Source/Common/CrossProcessMutex.h b/Source/Common/CrossProcessMutex.h
index 2f3ce7046..bb3a3b472 100644
--- a/Source/Common/CrossProcessMutex.h
+++ b/Source/Common/CrossProcessMutex.h
@@ -128,7 +128,7 @@ class CrossProcessMutex
public:
CrossProcessMutex(const std::string& name)
: m_fd(-1),
- m_fileName("/var/lock/" + name)
+ m_fileName("/run/cntk/" + name)
{
}

----------

Also please install this cntk.conf file to /usr/lib/tmpfiles.d/cntk.conf to make cntk co-operate with systemd-tmpfiles.
----------
d /run/cntk 0777 root root -
----------

jerry73204 commented on 2017-10-12 02:22

Please add the missing dependency "lapacke".