项目作者: ctuning

项目描述 :
Standalone, thin and portable server to let users participate in experiment crowdsourcing using Windows devices via Collective Knowledge Framework:
高级语言: C
项目地址: git://github.com/ctuning/ck-crowdnode.git
创建时间: 2016-09-14T08:11:12Z
项目社区:https://github.com/ctuning/ck-crowdnode

开源协议:Other

下载


Linux/MacOS: Build Status
Windows: Windows Build status

Collective Knowledge Node for experiment crowdsourcing (on Windows devices)

Standalone, thin and portable server to let users participate in experiment
crowdsourcing via Collective Knowledge. It unifies remote execution on Windows
similar to Android ADB (experiment crowdsourcing via Linux and Android
platforms is already supported by CK). It can also be used to create farms
of machines for collaborative benchmarking and tuning (crowd-benchmarking).

Note that both server and client should run Windows.

Project homepage:

License

  • Permissive 3-clause BSD license. (See LICENSE.txt for more details).

Status

Relatively stable - testing phase

Usage: server side

On Windows:

  1. Download the installer from Appveyor

  2. Install and start “CK crowd-node server”.

  3. Write down “[INFO for CK client]” - you will require this info to configure this target machine on a client.

Alternatively, you can build it manually (you’ll need CMake and Visual Studio):

  1. mkdir build
  2. cd build
  3. cmake ..
  4. cmake --build . --config Release --target PACKAGE

Now, you should be able to run build/Release/ck-crowdnode-server.exe.

Usage: client side

Install CK framework.
If you have PIP, you can install it simply as following:

  1. $ pip install ck

Pull ck-autotuning repository (including dependencies):

  1. $ ck pull repo:ck-autotuning

Prepare local file with a secret key (see [INFO for CK client]),
for example in C:\secret-key.txt

Register target machine with ck-crowdnode-server via
(substitute ‘’my-remote-target’’ with any other user-friendly name)

  1. $ ck add machine:my-remote-target

Select 4) CK: remote Windows machine accessed via CK crowd node.
Then 4) windows-64

Then enter hostname, port, path to public key (C:\secret-key.txt),
and full path to files on a target machine (all info is available
via [INFO for CK client] - we later plan to automate this process).

Now you can check that you machine is connected and online via

  1. $ ck show machine

or

  1. $ ck browse machine

Now you should be able to compile and run sample program using this target.
You need to have Microsoft C compilers and Microsoft SDK installed
(there is a free edition available). You can also download and install
LLVM for Windows,
but remember that it also requires Visual C compiler and Microsoft SDK.

Try to compile susan benchmark (during first compilation, CK will attempt
to automatically detect installed compilers and SDK while asking
you extra questions, if needed):

  1. $ ck compile program:cbench-automotive-susan --speed --target=my-remote-target

Finally, you can try to run it:

  1. $ ck run program:cbench-automotive-susan --target=my-remote-target

If everything is configured correctly, this code will be executed several
times on a required target and execution time will be reported!

If you have any problems, questions or comments, do not hesitate to get in touch
with the CK community via our public mailing list!

Further details

Public discussions

logo