Spaces:
Sleeping
Sleeping
first commit
Browse files- .ipynb_checkpoints/Dockerfile-checkpoint +0 -2
- Dockerfile +0 -2
- Dockerfile.bak +119 -0
- execution_engine/.ipynb_checkpoints/config-checkpoint.yaml +491 -0
- execution_engine/config.yaml +1 -1
.ipynb_checkpoints/Dockerfile-checkpoint
CHANGED
@@ -109,8 +109,6 @@ RUN mkdir /home/user/execution_engine
|
|
109 |
COPY --chown=user ./execution_engine /home/user/execution_engine
|
110 |
COPY --chown=user $WORKER_CFG_DB /home/user
|
111 |
ENV WORKER_CFG_DB /home/user/worker_cfg_db.csv
|
112 |
-
RUN mkdir -p /code_store
|
113 |
-
RUN chown -R user:user /code_store
|
114 |
|
115 |
USER user
|
116 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
109 |
COPY --chown=user ./execution_engine /home/user/execution_engine
|
110 |
COPY --chown=user $WORKER_CFG_DB /home/user
|
111 |
ENV WORKER_CFG_DB /home/user/worker_cfg_db.csv
|
|
|
|
|
112 |
|
113 |
USER user
|
114 |
ENV PATH="/home/user/.local/bin:$PATH"
|
Dockerfile
CHANGED
@@ -109,8 +109,6 @@ RUN mkdir /home/user/execution_engine
|
|
109 |
COPY --chown=user ./execution_engine /home/user/execution_engine
|
110 |
COPY --chown=user $WORKER_CFG_DB /home/user
|
111 |
ENV WORKER_CFG_DB /home/user/worker_cfg_db.csv
|
112 |
-
RUN mkdir -p /code_store
|
113 |
-
RUN chown -R user:user /code_store
|
114 |
|
115 |
USER user
|
116 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
109 |
COPY --chown=user ./execution_engine /home/user/execution_engine
|
110 |
COPY --chown=user $WORKER_CFG_DB /home/user
|
111 |
ENV WORKER_CFG_DB /home/user/worker_cfg_db.csv
|
|
|
|
|
112 |
|
113 |
USER user
|
114 |
ENV PATH="/home/user/.local/bin:$PATH"
|
Dockerfile.bak
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu:jammy
|
2 |
+
WORKDIR /root
|
3 |
+
|
4 |
+
ENV DEBIAN_FRONTEND noninteractive
|
5 |
+
ENV TZ Etc/UTC
|
6 |
+
|
7 |
+
RUN apt-get update && \
|
8 |
+
apt-get install -y \
|
9 |
+
gnupg ca-certificates apt-utils \
|
10 |
+
build-essential curl unzip && \
|
11 |
+
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
12 |
+
RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official-stable.list
|
13 |
+
RUN apt-get update && \
|
14 |
+
apt-get install -y tzdata
|
15 |
+
|
16 |
+
RUN apt-get install -y mono-devel \
|
17 |
+
gcc-12 g++-12
|
18 |
+
|
19 |
+
RUN apt-get update && \
|
20 |
+
apt-get install -y software-properties-common python3.11-dev
|
21 |
+
|
22 |
+
RUN apt-get update && \
|
23 |
+
apt-get install -y -f libasound2 libc6-i386 libc6-x32 libxi6 libxtst6
|
24 |
+
|
25 |
+
ENV JAVA_PKG=https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz \
|
26 |
+
JAVA_HOME=/usr/java/jdk-21
|
27 |
+
|
28 |
+
RUN set -eux; \
|
29 |
+
JAVA_SHA256=$(curl "$JAVA_PKG".sha256) ; \
|
30 |
+
curl --output /tmp/jdk.tgz "$JAVA_PKG" && \
|
31 |
+
echo "$JAVA_SHA256 */tmp/jdk.tgz" | sha256sum -c; \
|
32 |
+
mkdir -p "$JAVA_HOME"; \
|
33 |
+
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1
|
34 |
+
|
35 |
+
RUN curl -OL https://github.com/JetBrains/kotlin/releases/download/v1.7.20/kotlin-compiler-1.7.20.zip
|
36 |
+
RUN unzip kotlin-compiler-1.7.20.zip -d /usr/local && \
|
37 |
+
rm kotlin-compiler-1.7.20.zip
|
38 |
+
|
39 |
+
RUN apt-get install -y python2
|
40 |
+
|
41 |
+
RUN curl -OL https://go.dev/dl/go1.19.2.linux-amd64.tar.gz
|
42 |
+
RUN tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz && \
|
43 |
+
rm go1.19.2.linux-amd64.tar.gz
|
44 |
+
|
45 |
+
RUN curl -OL https://downloads.python.org/pypy/pypy3.9-v7.3.9-linux64.tar.bz2
|
46 |
+
RUN tar -C /usr/local -xf pypy3.9-v7.3.9-linux64.tar.bz2 && \
|
47 |
+
rm pypy3.9-v7.3.9-linux64.tar.bz2
|
48 |
+
|
49 |
+
RUN curl -OL https://downloads.python.org/pypy/pypy2.7-v7.3.9-linux64.tar.bz2
|
50 |
+
RUN tar -C /usr/local -xf pypy2.7-v7.3.9-linux64.tar.bz2 && \
|
51 |
+
rm pypy2.7-v7.3.9-linux64.tar.bz2
|
52 |
+
|
53 |
+
RUN apt-get install -y clang-14
|
54 |
+
|
55 |
+
ARG NODE_VERSION=v16.17.1
|
56 |
+
ARG NODE_DISTRO=linux-x64
|
57 |
+
ARG NODE_ZIP=node-$NODE_VERSION-$NODE_DISTRO.tar.xz
|
58 |
+
RUN curl -OL https://nodejs.org/dist/$NODE_VERSION/$NODE_ZIP
|
59 |
+
RUN tar -C /usr/local -xJvf $NODE_ZIP && \
|
60 |
+
rm $NODE_ZIP
|
61 |
+
|
62 |
+
ENV RUSTUP_HOME /opt/rust
|
63 |
+
ENV CARGO_HOME /opt/rust
|
64 |
+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path
|
65 |
+
RUN apt-get install -y ruby-full
|
66 |
+
|
67 |
+
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing php8.1
|
68 |
+
RUN apt-get install -y libgmp-dev libmpfr-dev
|
69 |
+
|
70 |
+
ENV PATH $PATH:/usr/local/go/bin:/usr/local/kotlinc/bin:/usr/local/node-v16.17.1-linux-x64/bin:/opt/rust/bin
|
71 |
+
|
72 |
+
WORKDIR /root
|
73 |
+
|
74 |
+
|
75 |
+
RUN update-alternatives --install /usr/bin/java java "$JAVA_HOME"/bin/java 100 && \
|
76 |
+
update-alternatives --install /usr/bin/javac javac "$JAVA_HOME"/bin/javac 100 && \
|
77 |
+
update-alternatives --install /usr/bin/jar jar "$JAVA_HOME"/bin/jar 100 && \
|
78 |
+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 && \
|
79 |
+
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 && \
|
80 |
+
update-alternatives --install /usr/bin/python python /usr/bin/python3.11 100 && \
|
81 |
+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 100 && \
|
82 |
+
update-alternatives --install /usr/bin/pypy2 pypy2 /usr/local/pypy2.7-v7.3.9-linux64/bin/pypy2 100 && \
|
83 |
+
update-alternatives --install /usr/bin/pypy3 pypy3 /usr/local/pypy3.9-v7.3.9-linux64/bin/pypy3 100
|
84 |
+
|
85 |
+
RUN apt-get install -y python3-pip gperf
|
86 |
+
RUN pip install flask gunicorn flask-cors gmpy2 Cython jsonlines fire
|
87 |
+
|
88 |
+
RUN curl -o libseccomp.tar.gz -L https://github.com/seccomp/libseccomp/releases/download/v2.5.4/libseccomp-2.5.4.tar.gz
|
89 |
+
RUN tar -xzvf libseccomp.tar.gz && cd libseccomp-2.5.4 && chmod +x configure
|
90 |
+
WORKDIR /root/libseccomp-2.5.4
|
91 |
+
RUN ./configure --prefix=/usr --enable-python && make
|
92 |
+
RUN make install
|
93 |
+
WORKDIR /root/
|
94 |
+
RUN rm -rf libseccomp*
|
95 |
+
|
96 |
+
|
97 |
+
ENV RUN_UID 1586
|
98 |
+
ENV RUN_GID 1586
|
99 |
+
ENV NUM_WORKERS 2
|
100 |
+
ENV GUNICORN_PORT 7860
|
101 |
+
ENV LOG_LEVEL info
|
102 |
+
|
103 |
+
# RUN groupadd -g ${RUN_GID} runner${RUN_GID} && useradd -M runner${RUN_UID} -g ${RUN_GID} -u ${RUN_UID}
|
104 |
+
|
105 |
+
EXPOSE ${GUNICORN_PORT}
|
106 |
+
RUN useradd -m -u 1000 user
|
107 |
+
|
108 |
+
RUN mkdir /home/user/execution_engine
|
109 |
+
COPY --chown=user ./execution_engine /home/user/execution_engine
|
110 |
+
COPY --chown=user $WORKER_CFG_DB /home/user
|
111 |
+
ENV WORKER_CFG_DB /home/user/worker_cfg_db.csv
|
112 |
+
RUN mkdir -p /home/user/code_store
|
113 |
+
RUN chown -R user:user /code_store
|
114 |
+
|
115 |
+
USER user
|
116 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
117 |
+
WORKDIR /home/user/execution_engine
|
118 |
+
|
119 |
+
CMD ["bash", "start_engine.sh"]
|
execution_engine/.ipynb_checkpoints/config-checkpoint.yaml
ADDED
@@ -0,0 +1,491 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
code_store:
|
2 |
+
source_code_dir: /home/user/code_store/
|
3 |
+
supported_languages:
|
4 |
+
GNU C:
|
5 |
+
compile_cmd: gcc
|
6 |
+
compile_flags: -fno-optimize-sibling-calls -w -fno-strict-aliasing -DONLINE_JUDGE -include limits.h -fno-asm -s -O2 -DONLINE_JUDGE -include math.h -static -lm
|
7 |
+
sanitize_fn_name: sanitize_c_cpp
|
8 |
+
compile_fn_name: generic_c_cpp_compile
|
9 |
+
execute_fn_name: generic_binary_execute
|
10 |
+
file_name_fn_or_str_name: test.c
|
11 |
+
|
12 |
+
GNU C11:
|
13 |
+
compile_cmd: gcc
|
14 |
+
compile_flags: -std=c11 -fno-optimize-sibling-calls -w -fno-strict-aliasing -DONLINE_JUDGE -include limits.h -fno-asm -s -O2 -DONLINE_JUDGE -include math.h -static -lm
|
15 |
+
sanitize_fn_name: sanitize_c_cpp
|
16 |
+
compile_fn_name: generic_c_cpp_compile
|
17 |
+
execute_fn_name: generic_binary_execute
|
18 |
+
file_name_fn_or_str_name: test.c
|
19 |
+
|
20 |
+
GNU C++:
|
21 |
+
compile_cmd: g++
|
22 |
+
compile_flags: -s -x c++ -O2 -w -DONLINE_JUDGE -include math.h -include limits.h -static -lm
|
23 |
+
sanitize_fn_name: sanitize_c_cpp
|
24 |
+
compile_fn_name: generic_c_cpp_compile
|
25 |
+
execute_fn_name: generic_binary_execute
|
26 |
+
file_name_fn_or_str_name: test.cpp
|
27 |
+
|
28 |
+
GNU C++0x:
|
29 |
+
compile_cmd: g++
|
30 |
+
compile_flags: -std=c++0x -s -x c++ -O2 -w -DONLINE_JUDGE -include math.h -include limits.h -static -lm
|
31 |
+
sanitize_fn_name: sanitize_c_cpp
|
32 |
+
compile_fn_name: generic_c_cpp_compile
|
33 |
+
execute_fn_name: generic_binary_execute
|
34 |
+
file_name_fn_or_str_name: test.cpp
|
35 |
+
|
36 |
+
GNU C++11:
|
37 |
+
compile_cmd: g++
|
38 |
+
compile_flags: -std=c++11 -s -x c++ -O2 -w -DONLINE_JUDGE -include math.h -include limits.h -static -lm
|
39 |
+
sanitize_fn_name: sanitize_c_cpp
|
40 |
+
compile_fn_name: generic_c_cpp_compile
|
41 |
+
execute_fn_name: generic_binary_execute
|
42 |
+
file_name_fn_or_str_name: test.cpp
|
43 |
+
|
44 |
+
GNU C++14:
|
45 |
+
compile_cmd: g++
|
46 |
+
compile_flags: -std=c++14 -s -x c++ -O2 -w -DONLINE_JUDGE -include math.h -include limits.h -static -lm
|
47 |
+
sanitize_fn_name: sanitize_c_cpp
|
48 |
+
compile_fn_name: generic_c_cpp_compile
|
49 |
+
execute_fn_name: generic_binary_execute
|
50 |
+
file_name_fn_or_str_name: test.cpp
|
51 |
+
|
52 |
+
GNU C++17:
|
53 |
+
compile_cmd: g++
|
54 |
+
compile_flags: -std=c++17 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
55 |
+
sanitize_fn_name: sanitize_c_cpp
|
56 |
+
compile_fn_name: generic_c_cpp_compile
|
57 |
+
execute_fn_name: generic_binary_execute
|
58 |
+
file_name_fn_or_str_name: test.cpp
|
59 |
+
|
60 |
+
GNU C++17 (64):
|
61 |
+
compile_cmd: g++
|
62 |
+
compile_flags: -std=c++17 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
63 |
+
sanitize_fn_name: sanitize_c_cpp
|
64 |
+
compile_fn_name: generic_c_cpp_compile
|
65 |
+
execute_fn_name: generic_binary_execute
|
66 |
+
file_name_fn_or_str_name: test.cpp
|
67 |
+
|
68 |
+
GNU C++20 (64):
|
69 |
+
compile_cmd: g++
|
70 |
+
compile_flags: -std=c++20 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
71 |
+
sanitize_fn_name: sanitize_c_cpp
|
72 |
+
compile_fn_name: generic_c_cpp_compile
|
73 |
+
execute_fn_name: generic_binary_execute
|
74 |
+
file_name_fn_or_str_name: test.cpp
|
75 |
+
|
76 |
+
GNU C++20:
|
77 |
+
compile_cmd: g++
|
78 |
+
compile_flags: -std=c++20 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
79 |
+
sanitize_fn_name: sanitize_c_cpp
|
80 |
+
compile_fn_name: generic_c_cpp_compile
|
81 |
+
execute_fn_name: generic_binary_execute
|
82 |
+
file_name_fn_or_str_name: test.cpp
|
83 |
+
|
84 |
+
GNU C++17 Diagnostics:
|
85 |
+
compile_cmd: g++
|
86 |
+
compile_flags: -std=c++17 -s -x c++ -O2 -w -DONLINE_JUDGE -pedantic -include limits.h -include math.h -static -lm
|
87 |
+
sanitize_fn_name: sanitize_c_cpp
|
88 |
+
compile_fn_name: generic_c_cpp_compile
|
89 |
+
execute_fn_name: generic_binary_execute
|
90 |
+
file_name_fn_or_str_name: test.cpp
|
91 |
+
|
92 |
+
Clang++17 Diagnostics:
|
93 |
+
compile_cmd: clang++-14
|
94 |
+
compile_flags: -std=c++17 -s -x c++ -O2 -w -pedantic -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
95 |
+
sanitize_fn_name: sanitize_c_cpp
|
96 |
+
compile_fn_name: generic_c_cpp_compile
|
97 |
+
execute_fn_name: generic_binary_execute
|
98 |
+
file_name_fn_or_str_name: test.cpp
|
99 |
+
|
100 |
+
Clang++17:
|
101 |
+
compile_cmd: clang++-14
|
102 |
+
compile_flags: -std=c++17 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
103 |
+
sanitize_fn_name: sanitize_c_cpp
|
104 |
+
compile_fn_name: generic_c_cpp_compile
|
105 |
+
execute_fn_name: generic_binary_execute
|
106 |
+
file_name_fn_or_str_name: test.cpp
|
107 |
+
|
108 |
+
Clang++20 Diagnostics:
|
109 |
+
compile_cmd: clang++-14
|
110 |
+
compile_flags: -std=c++20 -s -x c++ -O2 -w -pedantic -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
111 |
+
sanitize_fn_name: sanitize_c_cpp
|
112 |
+
compile_fn_name: generic_c_cpp_compile
|
113 |
+
execute_fn_name: generic_binary_execute
|
114 |
+
file_name_fn_or_str_name: test.cpp
|
115 |
+
|
116 |
+
Clang++20:
|
117 |
+
compile_cmd: clang++-14
|
118 |
+
compile_flags: -std=c++20 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
119 |
+
sanitize_fn_name: sanitize_c_cpp
|
120 |
+
compile_fn_name: generic_c_cpp_compile
|
121 |
+
execute_fn_name: generic_binary_execute
|
122 |
+
file_name_fn_or_str_name: test.cpp
|
123 |
+
|
124 |
+
Clang++14:
|
125 |
+
compile_cmd: clang++-14
|
126 |
+
compile_flags: -std=c++14 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
127 |
+
sanitize_fn_name: sanitize_c_cpp
|
128 |
+
compile_fn_name: generic_c_cpp_compile
|
129 |
+
execute_fn_name: generic_binary_execute
|
130 |
+
file_name_fn_or_str_name: test.cpp
|
131 |
+
|
132 |
+
Clang++11:
|
133 |
+
compile_cmd: clang++-14
|
134 |
+
compile_flags: -std=c++11 -s -x c++ -O2 -w -DONLINE_JUDGE -include limits.h -include math.h -static -lm
|
135 |
+
sanitize_fn_name: sanitize_c_cpp
|
136 |
+
compile_fn_name: generic_c_cpp_compile
|
137 |
+
execute_fn_name: generic_binary_execute
|
138 |
+
file_name_fn_or_str_name: test.cpp
|
139 |
+
|
140 |
+
MS C++:
|
141 |
+
compile_cmd: g++
|
142 |
+
compile_flags: -s -x c++ -O2 -w -DONLINE_JUDGE -include math.h -include limits.h -static -lm
|
143 |
+
sanitize_fn_name: sanitize_c_cpp
|
144 |
+
compile_fn_name: generic_c_cpp_compile
|
145 |
+
execute_fn_name: generic_binary_execute
|
146 |
+
file_name_fn_or_str_name: test.cpp
|
147 |
+
|
148 |
+
MS C++ 2017:
|
149 |
+
compile_cmd: g++
|
150 |
+
compile_flags: -s -x c++ -O2 -w -DONLINE_JUDGE -include math.h -include limits.h -static -lm
|
151 |
+
sanitize_fn_name: sanitize_c_cpp
|
152 |
+
compile_fn_name: generic_c_cpp_compile
|
153 |
+
execute_fn_name: generic_binary_execute
|
154 |
+
file_name_fn_or_str_name: test.cpp
|
155 |
+
|
156 |
+
MS C#:
|
157 |
+
compile_cmd: csc
|
158 |
+
compile_flags: -o -nologo
|
159 |
+
execute_cmd: mono
|
160 |
+
compile_fn_name: generic_cs_compile
|
161 |
+
execute_fn_name: generic_interpreted_execute
|
162 |
+
file_name_fn_or_str_name: test.cs
|
163 |
+
timelimit_factor: 3
|
164 |
+
|
165 |
+
C# 10:
|
166 |
+
compile_cmd: csc
|
167 |
+
compile_flags: -o -nologo
|
168 |
+
execute_cmd: mono
|
169 |
+
compile_fn_name: generic_cs_compile
|
170 |
+
execute_fn_name: generic_interpreted_execute
|
171 |
+
file_name_fn_or_str_name: test.cs
|
172 |
+
timelimit_factor: 3
|
173 |
+
|
174 |
+
C# 8:
|
175 |
+
compile_cmd: csc
|
176 |
+
compile_flags: -o -nologo
|
177 |
+
execute_cmd: mono
|
178 |
+
compile_fn_name: generic_cs_compile
|
179 |
+
execute_fn_name: generic_interpreted_execute
|
180 |
+
file_name_fn_or_str_name: test.cs
|
181 |
+
timelimit_factor: 3
|
182 |
+
|
183 |
+
Mono C#:
|
184 |
+
compile_cmd: csc
|
185 |
+
compile_flags: -o -nologo
|
186 |
+
execute_cmd: mono
|
187 |
+
compile_fn_name: generic_cs_compile
|
188 |
+
execute_fn_name: generic_interpreted_execute
|
189 |
+
file_name_fn_or_str_name: test.cs
|
190 |
+
timelimit_factor: 3
|
191 |
+
|
192 |
+
.NET Core C#:
|
193 |
+
compile_cmd: csc
|
194 |
+
compile_flags: -o -nologo
|
195 |
+
execute_cmd: mono
|
196 |
+
compile_fn_name: generic_cs_compile
|
197 |
+
execute_fn_name: generic_interpreted_execute
|
198 |
+
file_name_fn_or_str_name: test.cs
|
199 |
+
timelimit_factor: 3
|
200 |
+
|
201 |
+
PyPy 2:
|
202 |
+
compile_cmd: pypy2
|
203 |
+
compile_flags: -W ignore -m py_compile
|
204 |
+
execute_cmd: pypy2
|
205 |
+
execute_flags: -W ignore -OO -s -S
|
206 |
+
execute_fn_name: generic_interpreted_execute
|
207 |
+
file_name_fn_or_str_name: test.py
|
208 |
+
timelimit_factor: 2
|
209 |
+
|
210 |
+
Python 2:
|
211 |
+
compile_cmd: python2
|
212 |
+
compile_flags: -W ignore -m py_compile
|
213 |
+
execute_cmd: python2
|
214 |
+
execute_flags: -W ignore -OO -s -S
|
215 |
+
execute_fn_name: generic_interpreted_execute
|
216 |
+
file_name_fn_or_str_name: test.py
|
217 |
+
timelimit_factor: 3
|
218 |
+
|
219 |
+
PyPy 3:
|
220 |
+
compile_cmd: pypy3
|
221 |
+
compile_flags: -W ignore -m py_compile
|
222 |
+
execute_cmd: pypy3
|
223 |
+
execute_flags: -W ignore -OO -s -S
|
224 |
+
compile_fn_name: generic_interpreted_compile
|
225 |
+
execute_fn_name: generic_interpreted_execute
|
226 |
+
file_name_fn_or_str_name: test.py
|
227 |
+
timelimit_factor: 2
|
228 |
+
|
229 |
+
PyPy 3-64:
|
230 |
+
compile_cmd: pypy3
|
231 |
+
compile_flags: -W ignore -m py_compile
|
232 |
+
execute_cmd: pypy3
|
233 |
+
execute_flags: -W ignore -OO -s -S
|
234 |
+
compile_fn_name: generic_interpreted_compile
|
235 |
+
execute_fn_name: generic_interpreted_execute
|
236 |
+
file_name_fn_or_str_name: test.py
|
237 |
+
timelimit_factor: 2
|
238 |
+
|
239 |
+
Python 3:
|
240 |
+
compile_cmd: python3
|
241 |
+
compile_flags: -W ignore -m py_compile
|
242 |
+
execute_cmd: python3
|
243 |
+
execute_flags: -W ignore -OO -s -S
|
244 |
+
compile_fn_name: generic_interpreted_compile
|
245 |
+
execute_fn_name: generic_interpreted_execute
|
246 |
+
file_name_fn_or_str_name: test.py
|
247 |
+
timelimit_factor: 3
|
248 |
+
|
249 |
+
Python 3 + libs:
|
250 |
+
compile_cmd: python3
|
251 |
+
compile_flags: -W ignore -m py_compile
|
252 |
+
execute_cmd: python3
|
253 |
+
execute_flags: -W ignore -OO -s -S
|
254 |
+
compile_fn_name: generic_interpreted_compile
|
255 |
+
execute_fn_name: generic_interpreted_execute
|
256 |
+
file_name_fn_or_str_name: test.py
|
257 |
+
timelimit_factor: 3
|
258 |
+
|
259 |
+
JavaScript:
|
260 |
+
compile_cmd: node
|
261 |
+
compile_flags: --check
|
262 |
+
execute_cmd: node
|
263 |
+
compile_fn_name: generic_interpreted_compile
|
264 |
+
execute_fn_name: generic_interpreted_execute
|
265 |
+
file_name_fn_or_str_name: test.js
|
266 |
+
timelimit_factor: 3
|
267 |
+
|
268 |
+
Node js:
|
269 |
+
compile_cmd: node
|
270 |
+
compile_flags: --check
|
271 |
+
execute_cmd: node
|
272 |
+
compile_fn_name: generic_interpreted_compile
|
273 |
+
execute_fn_name: generic_interpreted_execute
|
274 |
+
file_name_fn_or_str_name: test.js
|
275 |
+
timelimit_factor: 3
|
276 |
+
|
277 |
+
Node.js:
|
278 |
+
compile_cmd: node
|
279 |
+
compile_flags: --check
|
280 |
+
execute_cmd: node
|
281 |
+
compile_fn_name: generic_interpreted_compile
|
282 |
+
execute_fn_name: generic_interpreted_execute
|
283 |
+
file_name_fn_or_str_name: test.js
|
284 |
+
timelimit_factor: 3
|
285 |
+
|
286 |
+
Rust:
|
287 |
+
compile_cmd: rustc
|
288 |
+
compile_flags: -O
|
289 |
+
compile_fn_name: generic_rust_go_compile
|
290 |
+
execute_fn_name: generic_binary_execute
|
291 |
+
file_name_fn_or_str_name: test.rs
|
292 |
+
|
293 |
+
Rust 2021:
|
294 |
+
compile_cmd: rustc
|
295 |
+
compile_flags: --edition 2021 -O
|
296 |
+
compile_fn_name: generic_rust_go_compile
|
297 |
+
execute_fn_name: generic_binary_execute
|
298 |
+
file_name_fn_or_str_name: test.rs
|
299 |
+
|
300 |
+
Rust 2018:
|
301 |
+
compile_cmd: rustc
|
302 |
+
compile_flags: --edition 2018 -O
|
303 |
+
compile_fn_name: generic_rust_go_compile
|
304 |
+
execute_fn_name: generic_binary_execute
|
305 |
+
file_name_fn_or_str_name: test.rs
|
306 |
+
|
307 |
+
Rust 2015:
|
308 |
+
compile_cmd: rustc
|
309 |
+
compile_flags: --edition 2015 -O
|
310 |
+
compile_fn_name: generic_rust_go_compile
|
311 |
+
execute_fn_name: generic_binary_execute
|
312 |
+
file_name_fn_or_str_name: test.rs
|
313 |
+
|
314 |
+
Java 6:
|
315 |
+
compile_cmd: javac
|
316 |
+
compile_flags: -target 1.6 -nowarn -cp ".;*"
|
317 |
+
execute_cmd: java
|
318 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k
|
319 |
+
compile_fn_name: generic_java_compile
|
320 |
+
execute_fn_name: generic_java_execute
|
321 |
+
file_name_fn_or_str_name: java_file_name_suffix
|
322 |
+
timelimit_factor: 3
|
323 |
+
extend_mem_for_vm: true
|
324 |
+
extend_mem_flag_name: Xmx
|
325 |
+
|
326 |
+
Java 7:
|
327 |
+
compile_cmd: javac
|
328 |
+
compile_flags: -target 1.7 -nowarn -cp ".;*"
|
329 |
+
execute_cmd: java
|
330 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k
|
331 |
+
compile_fn_name: generic_java_compile
|
332 |
+
execute_fn_name: generic_java_execute
|
333 |
+
file_name_fn_or_str_name: java_file_name_suffix
|
334 |
+
timelimit_factor: 3
|
335 |
+
extend_mem_for_vm: true
|
336 |
+
extend_mem_flag_name: Xmx
|
337 |
+
|
338 |
+
Java 1.5:
|
339 |
+
compile_cmd: javac
|
340 |
+
compile_flags: -target 1.5 -nowarn -cp ".;*"
|
341 |
+
execute_cmd: java
|
342 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k
|
343 |
+
compile_fn_name: generic_java_compile
|
344 |
+
execute_fn_name: generic_java_execute
|
345 |
+
file_name_fn_or_str_name: java_file_name_suffix
|
346 |
+
timelimit_factor: 3
|
347 |
+
extend_mem_for_vm: true
|
348 |
+
extend_mem_flag_name: Xmx
|
349 |
+
|
350 |
+
Java 8:
|
351 |
+
compile_cmd: javac
|
352 |
+
compile_flags: -nowarn -cp ".;*"
|
353 |
+
execute_cmd: java
|
354 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k
|
355 |
+
compile_fn_name: generic_java_compile
|
356 |
+
execute_fn_name: generic_java_execute
|
357 |
+
file_name_fn_or_str_name: java_file_name_suffix
|
358 |
+
timelimit_factor: 3
|
359 |
+
extend_mem_for_vm: true
|
360 |
+
extend_mem_flag_name: Xmx
|
361 |
+
|
362 |
+
Java 11:
|
363 |
+
compile_cmd: javac
|
364 |
+
compile_flags: -nowarn -cp ".;*"
|
365 |
+
execute_cmd: java
|
366 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k
|
367 |
+
compile_fn_name: generic_java_compile
|
368 |
+
execute_fn_name: generic_java_execute
|
369 |
+
file_name_fn_or_str_name: java_file_name_suffix
|
370 |
+
timelimit_factor: 3
|
371 |
+
extend_mem_for_vm: true
|
372 |
+
extend_mem_flag_name: Xmx
|
373 |
+
|
374 |
+
Java 17:
|
375 |
+
compile_cmd: javac
|
376 |
+
compile_flags: -nowarn -cp ".;*"
|
377 |
+
execute_cmd: java
|
378 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k
|
379 |
+
compile_fn_name: generic_java_compile
|
380 |
+
execute_fn_name: generic_java_execute
|
381 |
+
file_name_fn_or_str_name: java_file_name_suffix
|
382 |
+
timelimit_factor: 3
|
383 |
+
extend_mem_for_vm: true
|
384 |
+
extend_mem_flag_name: Xmx
|
385 |
+
|
386 |
+
PHP:
|
387 |
+
compile_cmd: php
|
388 |
+
compile_flags: -l
|
389 |
+
execute_cmd: php
|
390 |
+
compile_fn_name: generic_interpreted_compile
|
391 |
+
execute_fn_name: generic_interpreted_execute
|
392 |
+
file_name_fn_or_str_name: test.php
|
393 |
+
timelimit_factor: 3
|
394 |
+
|
395 |
+
PHP 8.1:
|
396 |
+
compile_cmd: php
|
397 |
+
compile_flags: -l
|
398 |
+
execute_cmd: php
|
399 |
+
compile_fn_name: generic_interpreted_compile
|
400 |
+
execute_fn_name: generic_interpreted_execute
|
401 |
+
file_name_fn_or_str_name: test.php
|
402 |
+
timelimit_factor: 3
|
403 |
+
|
404 |
+
Go:
|
405 |
+
compile_cmd: go build
|
406 |
+
compile_fn_name: generic_rust_go_compile
|
407 |
+
execute_fn_name: generic_binary_execute
|
408 |
+
file_name_fn_or_str_name: test.go
|
409 |
+
|
410 |
+
Ruby:
|
411 |
+
compile_cmd: ruby
|
412 |
+
compile_flags: -c
|
413 |
+
execute_cmd: ruby
|
414 |
+
compile_fn_name: generic_interpreted_compile
|
415 |
+
execute_fn_name: generic_interpreted_execute
|
416 |
+
file_name_fn_or_str_name: test.rb
|
417 |
+
timelimit_factor: 3
|
418 |
+
|
419 |
+
Ruby 3:
|
420 |
+
compile_cmd: ruby
|
421 |
+
compile_flags: -c
|
422 |
+
execute_cmd: ruby
|
423 |
+
compile_fn_name: generic_interpreted_compile
|
424 |
+
execute_fn_name: generic_interpreted_execute
|
425 |
+
file_name_fn_or_str_name: test.rb
|
426 |
+
timelimit_factor: 3
|
427 |
+
|
428 |
+
Kotlin:
|
429 |
+
compile_cmd: kotlinc
|
430 |
+
compile_flags: -nowarn -language-version 1.7 -include-runtime
|
431 |
+
execute_cmd: java
|
432 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k -jar
|
433 |
+
sanitize_fn_name: sanitize_kotlin
|
434 |
+
compile_fn_name: generic_kt_compile
|
435 |
+
execute_fn_name: generic_kotlin_execute
|
436 |
+
file_name_fn_or_str_name: test.kt
|
437 |
+
timelimit_factor: 3
|
438 |
+
extend_mem_for_vm: true
|
439 |
+
extend_mem_flag_name: Xmx
|
440 |
+
|
441 |
+
Kotlin 1.4:
|
442 |
+
compile_cmd: kotlinc
|
443 |
+
compile_flags: -nowarn -language-version 1.4 -include-runtime
|
444 |
+
execute_cmd: java
|
445 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k -jar
|
446 |
+
sanitize_fn_name: sanitize_kotlin
|
447 |
+
compile_fn_name: generic_kt_compile
|
448 |
+
execute_fn_name: generic_kotlin_execute
|
449 |
+
file_name_fn_or_str_name: test.kt
|
450 |
+
timelimit_factor: 3
|
451 |
+
extend_mem_for_vm: true
|
452 |
+
extend_mem_flag_name: Xmx
|
453 |
+
|
454 |
+
Kotlin 1.5:
|
455 |
+
compile_cmd: kotlinc
|
456 |
+
compile_flags: -nowarn -language-version 1.5 -include-runtime
|
457 |
+
execute_cmd: java
|
458 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k -jar
|
459 |
+
sanitize_fn_name: sanitize_kotlin
|
460 |
+
compile_fn_name: generic_kt_compile
|
461 |
+
execute_fn_name: generic_kotlin_execute
|
462 |
+
file_name_fn_or_str_name: test.kt
|
463 |
+
timelimit_factor: 3
|
464 |
+
extend_mem_for_vm: true
|
465 |
+
extend_mem_flag_name: Xmx
|
466 |
+
|
467 |
+
Kotlin 1.6:
|
468 |
+
compile_cmd: kotlinc
|
469 |
+
compile_flags: -nowarn -language-version 1.6 -include-runtime
|
470 |
+
execute_cmd: java
|
471 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k -jar
|
472 |
+
sanitize_fn_name: sanitize_kotlin
|
473 |
+
compile_fn_name: generic_kt_compile
|
474 |
+
execute_fn_name: generic_kotlin_execute
|
475 |
+
file_name_fn_or_str_name: test.kt
|
476 |
+
timelimit_factor: 3
|
477 |
+
extend_mem_for_vm: true
|
478 |
+
extend_mem_flag_name: Xmx
|
479 |
+
|
480 |
+
Kotlin 1.7:
|
481 |
+
compile_cmd: kotlinc
|
482 |
+
compile_flags: -nowarn -language-version 1.7 -include-runtime
|
483 |
+
execute_cmd: java
|
484 |
+
execute_flags: -DONLINE_JUDGE=true -Xlog:disable -Xmx2g -XX:ReservedCodeCacheSize=64m -XX:-UseCompressedClassPointers -Xss256k -jar
|
485 |
+
sanitize_fn_name: sanitize_kotlin
|
486 |
+
compile_fn_name: generic_kt_compile
|
487 |
+
execute_fn_name: generic_kotlin_execute
|
488 |
+
file_name_fn_or_str_name: test.kt
|
489 |
+
timelimit_factor: 3
|
490 |
+
extend_mem_for_vm: true
|
491 |
+
extend_mem_flag_name: Xmx
|
execution_engine/config.yaml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
code_store:
|
2 |
-
source_code_dir: /code_store/
|
3 |
supported_languages:
|
4 |
GNU C:
|
5 |
compile_cmd: gcc
|
|
|
1 |
code_store:
|
2 |
+
source_code_dir: /home/user/code_store/
|
3 |
supported_languages:
|
4 |
GNU C:
|
5 |
compile_cmd: gcc
|