Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpu only for multi-user version #28

Open
wants to merge 88 commits into
base: cpu-only
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
567a289
version 0.0.2
kylincaster Aug 2, 2022
8db9a36
version 0.0.3
kylincaster Aug 2, 2022
43a5f50
version 0.0.4
kylincaster Aug 2, 2022
1b7fd87
version 0.0.5
kylincaster Aug 2, 2022
e4ea8c1
version 0.0.6
kylincaster Aug 2, 2022
e4af58e
version 0.1.0
kylincaster Aug 2, 2022
ab5330a
version 0.1.1
kylincaster Aug 2, 2022
23d1c8f
version 0.1.2
kylincaster Aug 2, 2022
06e13fc
version 0.1.3
kylincaster Aug 3, 2022
2ffbb0a
version 0.1.4
kylincaster Aug 3, 2022
4080d36
version 0.1.5
kylincaster Aug 10, 2022
34c7f49
version 0.1.6
kylincaster Aug 11, 2022
87675d6
version 0.1.7 add the user lock and unlock
kylincaster Aug 11, 2022
224f7ef
version 0.1.7 add task pause and resume
kylincaster Aug 11, 2022
8c3f3a9
version 0.1.8 add the server locker
kylincaster Aug 11, 2022
43c56b6
version 0.1.8 add the server locker
kylincaster Aug 11, 2022
e9d45f2
version 0.1.9 change the job_list
kylincaster Aug 12, 2022
3bf29c1
version 0.2.0 modify the first_finished_job
kylincaster Aug 12, 2022
9f0a8d7
version 0.2.0 modify the first_finished_job
kylincaster Aug 13, 2022
67bcba3
version 0.2.1 modify the user refresh
kylincaster Aug 13, 2022
7ecaaee
version 0.2.1 fixed the bug on the set max slots
kylincaster Aug 13, 2022
95c773b
version 0.2.1 fixed the bug on the set max slots
kylincaster Aug 13, 2022
cc4e148
version 0.2.2 add the daemon control
kylincaster Aug 16, 2022
44b51e5
version 0.2.3 add the environment variable read and first jobid
kylincaster Aug 21, 2022
d2baf1f
version 0.2.4 remove the random output name
kylincaster Aug 21, 2022
3f1d82f
fixed the typo
kylincaster Oct 18, 2022
890db24
fixed bug for the running job remove
kylincaster Oct 18, 2022
5d765a3
fixed typo for hold and restart
kylincaster Oct 22, 2022
544a5dd
fix the bug on kill the subprocessors
kylincaster Nov 8, 2022
ab056d1
fix the bug on kill the subprocessors
kylincaster Nov 8, 2022
14db6a9
add the sudo to kill in bash file
kylincaster Nov 8, 2022
25002b4
fix the potential bugs
kylincaster Nov 8, 2022
31ed211
fix the bugs for sudo
kylincaster Nov 9, 2022
cd57723
fix the bugs for kill signal
kylincaster Nov 9, 2022
9ef3852
remove the extra depends on bash file
kylincaster Nov 14, 2022
bc4fe1e
new version with restore runing tasks
kylincaster Feb 24, 2023
51f5fae
fixed the bug on the running
kylincaster Feb 24, 2023
c35c3fd
add the function to restore tasks
kylincaster Feb 24, 2023
ca8259f
fixed the bug
kylincaster Feb 25, 2023
d083dd1
fixed bug on the multiple user
kylincaster Feb 26, 2023
a7a32a5
add the `relink()` in [execute.c] to monitor the existing tasks
kylincaster Feb 27, 2023
6eba035
add the credential for socket connection
kylincaster Mar 2, 2023
70eae7a
fixed the bug on the job start time and log file
kylincaster Mar 2, 2023
1431e43
add check_daemon and remove f-string in python
kylincaster Mar 6, 2023
8bd7b1e
allow to release the resource for the holdon jobs
kylincaster Mar 23, 2023
cfbc6cb
add the sqlite3 to log tasks
kylincaster Mar 25, 2023
bfd82f5
add the feature to IO the int array for notify
kylincaster Mar 25, 2023
1b8645d
zero to job->results floats and the fix the bug on adding the jobs
kylincaster Mar 25, 2023
f265ff4
update the kill_pid
kylincaster Mar 25, 2023
819b063
add sqlite.c
kylincaster Mar 25, 2023
4b89b67
add taskset for cpu
kylincaster Mar 25, 2023
c5ff34b
fixed bug for the task_queue
kylincaster Mar 26, 2023
d03041b
optimzied the code
kylincaster Mar 26, 2023
98b0b2f
fixed the bug on the job and add more output on info
kylincaster Mar 26, 2023
6753fd6
fixed the bug on the job and add cjson
kylincaster Mar 27, 2023
4a48b79
add relink feature to restore task-spooler service
kylincaster Mar 27, 2023
8009149
add default_path.h
kylincaster Mar 27, 2023
ccf0352
add task-spooler.service
kylincaster Mar 27, 2023
c030068
fixed the bug on the start time and remove the popen function
kylincaster Mar 27, 2023
481a667
rename default_path.h
kylincaster Mar 27, 2023
dd54968
fixed some bugs
kylincaster Mar 27, 2023
86fd2e1
add ptrace
kylincaster Mar 27, 2023
8fd4caf
fixed the bug and unify the source allocation
kylincaster Mar 28, 2023
e4c1e08
change the way to allocate and free cores on jobs
kylincaster Mar 28, 2023
f2f3dd6
fixed the bug on s_rerun_job()
kylincaster Mar 28, 2023
069df85
using while to wait for pid
kylincaster Mar 28, 2023
3efcd17
add the pause check
kylincaster Mar 28, 2023
43809a2
new versions
kylincaster Apr 22, 2023
92177eb
add sstmp.c to send the email
Oct 8, 2023
44122ea
add sstmp to send email
Oct 8, 2023
7674c9c
add help for ssmtp email
Oct 9, 2023
aefb648
fix bug for the email_time
Oct 9, 2023
de9c945
fix bug for the email_time
Oct 9, 2023
16902ea
add the failure check
Oct 12, 2023
96460d3
fixed the bug on the job control and change the command
Oct 27, 2023
0467136
fixed the bug on set_task_cores
Oct 27, 2023
87ea351
fixed the bug on set_task_cores
Oct 27, 2023
46dc1cb
improve the decription on the ts
Oct 28, 2023
cc70b2f
add copy check in sqlite to file the null and trivial string
Oct 28, 2023
0f873d6
add duplicate check in the insert of arguments
Oct 28, 2023
c65ece3
add --no-bind option or remove the mpi binding
Oct 28, 2023
ea0b6f8
fixed some typo
Jan 26, 2024
219dfe3
add failure check for ts and enlarge the buff size
Feb 23, 2024
4720a0e
add command length check for input
Feb 23, 2024
4c088a1
add function to pause process recursively
Mar 5, 2024
d4ee779
remove the extra bash and fix the taskset
Mar 6, 2024
e0fbf1c
add macro for no taskset mode
Mar 6, 2024
ca21446
fixed the bugs
Mar 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

PREFIX?=/usr/local
PREFIX_LOCAL=~
GLIBCFLAGS=-D_XOPEN_SOURCE=500 -D__STRICT_ANSI__
GLIBCFLAGS=#-D_XOPEN_SOURCE=500 -D__STRICT_ANSI__
CPPFLAGS+=$(GLIBCFLAGS)
CFLAGS?=-pedantic -ansi -Wall -g -O0 -std=c11
CFLAGS?=-pedantic -ansi -Wall -g -std=gnu11 -DNO_TASKSET -DSOUND -fcommon -Wno-format-truncation
OBJECTS=main.o \
server.o \
server_start.o \
Expand All @@ -18,7 +19,11 @@ OBJECTS=main.o \
print.o \
info.o \
env.o \
tail.o
tail.o \
user.o \
cJSON.o \
sqlite.o \
taskset.o
TARGET=ts
INSTALL=install -c

Expand All @@ -27,7 +32,7 @@ GIT_REPO=$(shell git rev-parse --is-inside-work-tree)
all: $(TARGET)

$(TARGET): $(OBJECTS)
$(CC) $(LDFLAGS) -o $(TARGET) $^
$(CC) $(LDFLAGS) -o $(TARGET) $^ -lsqlite3

%.o : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
Expand All @@ -36,8 +41,9 @@ $(TARGET): $(OBJECTS)
main.o: main.c main.h
ifeq ($(GIT_REPO), true)
GIT_VERSION=$$(echo $$(git describe --dirty --always --tags) | tr - +); \
$(CC) $(CFLAGS) $(CPPFLAGS) -DTS_VERSION=$${GIT_VERSION} -c $< -o $@
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
endif
user.o: user.c
server_start.o: server_start.c main.h
server.o: server.c main.h
client.o: client.c main.h
Expand All @@ -50,9 +56,14 @@ error.o: error.c main.h
signals.o: signals.c main.h
list.o: list.c main.h
tail.o: tail.c main.h
cJSON.o: cjson/cJSON.c cjson/cJSON.h
sqlite.o: sqlite.c main.h
taskset.o: taskset.c main.h
cJSON.o : cjson/cJSON.c cjson/cJSON.h
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@

clean:
rm -f *.o $(TARGET)
rm -f *.o $(TARGET); killall ts; rm ts;

install: $(TARGET)
$(INSTALL) -d $(PREFIX)/bin
Expand Down
232 changes: 151 additions & 81 deletions README.md

Large diffs are not rendered by default.

Loading