First, clone the repository
git clone https://github.com/justanhduc/task-spooler
To set up Task Spooler with GPU support, one needs to set a CUDA_HOME environment variable.
Then, simple run the provided script
./install_cmake
to use CMake, or
./install_make
to use Makefile. If Task Spooler has already been installed, and you want to reinstall or upgrade, you can run
./reinstall
If you would like to install only the CPU version, use the following commands (recommended)
make cpu
sudo make install
or via CMake
mkdir build && cd build
cmake .. -DTASK_SPOOLER_COMPILE_CUDA=OFF -DCMAKE_BUILD_TYPE=Release
make
sudo make install
This version is more faithful to the original ts but with many new exciting features,
and is still being actively developed.
To install without sudo privilege, one can replace the installation command by
make install-local
Note that, the installation will create a bin folder in $HOME if it does not exist.
To use ts anywhere, $HOME/bin needs to be added to $PATH if it hasn't been done already.
To use man, you may also need to add $HOME/.local/share/man to $MANPATH.
- Cannot find CUDA: Did you set a
CUDA_HOMEflag? list.c:22:5: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)': Please remove-D_XOPEN_SOURCE=500in the Makefile as reported here.Error calling recv_msg in c_check_versionand/orWrong server version: This is because another version oftsis still running. If you want to upgrade, please use thereinstallscript as instructed above. If you installedtsviaaptbefore, you have to uninstall it and remove the server file in/tmpfirst before installing thists. For more info, see here and here.
./uninstall
Or, to remove a local installation:
make uninstall-local
Why would you want to do that anyway?