Skip to content

Commit

Permalink
made gpu version default
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Sep 24, 2022
1 parent c787e48 commit cb900fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
matrix:
include:
- os: ubuntu-22.04
cuda: "on"
cuda: "off"
cmake_args: |
-DTASK_SPOOLER_COMPILE_CUDA=on
-DTASK_SPOOLER_COMPILE_CUDA=off
- os: ubuntu-22.04
cuda: "off"
cuda: "on"
cmake_args: ""

fail-fast: false
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
run: |
mkdir build
cd build
cmake ..
cmake .. -DTASK_SPOOLER_COMPILE_CUDA=off
make
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(Task-Spooler C)

set(CMAKE_C_STANDARD 11)

option(TASK_SPOOLER_COMPILE_CUDA "Compile CUDA support (NVML)" OFF)
option(TASK_SPOOLER_COMPILE_CUDA "Compile CUDA support (NVML)" ON)

# VERSIONING
execute_process(
Expand Down Expand Up @@ -59,3 +59,9 @@ else(TASK_SPOOLER_COMPILE_CUDA)
target_compile_definitions(${target} PUBLIC CPU)
endif(TASK_SPOOLER_COMPILE_CUDA)

# install
install(CODE "execute_process(COMMAND install -c -d /usr/local/bin)")
install(CODE "execute_process(COMMAND install -c ts /usr/local/bin)")
install(CODE "execute_process(COMMAND ./makeman)")
install(CODE "execute_process(COMMAND install -c -d /usr/local/share/man/man1)")
install(CODE "execute_process(COMMAND install -c -m 644 ts.1 /usr/local/share/man/man1)")
8 changes: 2 additions & 6 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ sudo make install
or via CMake
```
mkdir build && cd build
cmake .. -DCPU=1 -DCMAKE_BUILD_TYPE=Release
cmake .. -DTASK_SPOOLER_COMPILE_CUDA=OFF -DCMAKE_BUILD_TYPE=Release
make
sudo install -c -d /usr/local/bin
sudo install -c ts /usr/local/bin
sudo install -c -d /usr/local/share/man/man1
./makeman
sudo install -c -m 644 ../ts.1 /usr/local/share/man/man1
sudo make install
```
This version is more faithful to the original `ts` but with many new exciting features,
and is still being actively developed.
Expand Down
8 changes: 2 additions & 6 deletions install_cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@

rm -rf build && mkdir build && cd build || exit
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 3
sudo install -c -d /usr/local/bin
sudo install -c ts /usr/local/bin
sudo install -c -d /usr/local/share/man/man1
./makeman
sudo install -c -m 644 ../ts.1 /usr/local/share/man/man1
make
sudo make install

0 comments on commit cb900fc

Please sign in to comment.