-
Notifications
You must be signed in to change notification settings - Fork 130
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
TimeoutError when runing MLIR example #792
Comments
Hi @sofan110, let me CC the authors of the MLIR environment as they may be able to help you out: @KyleHerndon, @sogartar. In the meantime, could you please add the extra system information needed to diagnose issues (click on "bug report" here for the template). Cheers, |
🐛 BugTimeoutError when running mlir_rl_wrapper_env.step() To ReproduceSteps to reproduce the behavior:
EnvironmentCompilerGym: 0.2.5 Python version: 3.8.16 (default, Mar 2 2023, 03:21:46) [GCC 11.2.0] (64-bit runtime) OS: CentOS Linux 7 (Core) (x86_64) Versions of all installed libraries: Additional contextI just remember that I use CMAKE_C_COMPILER=gcc & CMAKE_CXX_COMPILER=g++, not clang & clang++ mentioned in the documentation. Is it the key point? |
❓ Questions and Help
I use compiler_gym 0.2.5 installed with MLIR env and try to execute the example code
import gym
from compiler_gym.wrappers.mlir import make_mlir_rl_wrapper_env
env = gym.make("mlir-v0")
wrapper = make_mlir_rl_wrapper_env(env)
wrapper.reset()
observation, reward, done, info = wrapper.step(wrapper.action_space.sample())
but I get the following error:
RuntimeError: {'error_type': 'TimeoutError', 'error_details': "Command '$CC -Ofast /dev/shm/compiler_gym_wufan/s/0404T150542-962363-5241/scratch-42e8-a740/out.mlir.ll -mllvm -enable-matrix -mllvm -matrix-allow-contract -mllvm -matrix-default-layout=row-major -c -o /dev/shm/compiler_gym_wufan/s/0404T150542-962363-5241/scratch-42e8-a740/benchmark_mlir.o /workspace/S/wufan/conda/anaconda3/envs/MLIR/lib/python3.8/site-packages/compiler_gym/envs/mlir/service/llvm/lib/libMLIRExecutionEngine.a -g3 && $CC -o /dev/shm/compiler_gym_wufan/s/0404T150542-962363-5241/scratch-42e8-a740/benchmark_main -I/workspace/S/wufan/conda/anaconda3/envs/MLIR/lib/python3.8/site-packages/compiler_gym/envs/mlir/service/llvm/include/ -I/workspace/S/wufan/conda/anaconda3/envs/MLIR/lib/python3.8/site-packages/compiler_gym/envs/mlir/service/google_benchmark/include/ -lstdc++ -lm -pthread -v -g3 /dev/shm/compiler_gym_wufan/s/0404T150542-962363-5241/scratch-42e8-a740/benchmark_main.cc /dev/shm/compiler_gym_wufan/s/0404T150542-962363-5241/scratch-42e8-a740/benchmark_mlir.o /workspace/S/wufan/conda/anaconda3/envs/MLIR/lib/python3.8/site-packages/compiler_gym/envs/mlir/service/google_benchmark/lib/libbenchmark.a' failed to complete within 120 seconds (300.0 seconds)"}
The text was updated successfully, but these errors were encountered: