-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated readme. added useful scripts
- Loading branch information
1 parent
9ece23a
commit dde0298
Showing
5 changed files
with
107 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(Task-Spooler C) | ||
|
||
set(CMAKE_C_STANDARD 11) | ||
|
||
set(CMAKE_CUDA_COMPILER $ENV{CUDA_HOME}/bin/nvcc) | ||
find_package(CUDA REQUIRED) | ||
include_directories($ENV{CUDA_HOME}/include) | ||
|
||
add_executable( | ||
ts | ||
client.c | ||
env.c | ||
error.c | ||
execute.c | ||
gpu.c | ||
info.c | ||
jobs.c | ||
list.c | ||
mail.c | ||
main.c | ||
msg.c | ||
msgdump.c | ||
print.c | ||
server.c | ||
server_start.c | ||
signals.c | ||
tail.c | ||
) | ||
|
||
target_link_libraries(ts ${CUDA_LIBRARIES}) | ||
|
||
set( | ||
TS_PERMISSIONS | ||
OWNER_WRITE OWNER_READ OWNER_EXECUTE | ||
GROUP_READ GROUP_EXECUTE | ||
WORLD_READ WORLD_EXECUTE | ||
) | ||
|
||
install(TARGETS ts DESTINATION /usr/local/bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
mkdir build && cd build || exit | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make -j 3 | ||
sudo make install | ||
sudo install -c -m 644 ../ts.1 /usr/local/share/man/man1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ts -K | ||
sudo rm -f /usr/local/bin/ts | ||
sudo rm -f /usr/local/share/man/man1/ts.1 |