Skip to content
Merged
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import os

import pytest

# The planner's numba kernels are compiled with fastmath for the host CPU, so an rsim game played
# on CI's CPU can drift from the same game played locally, and a test that asserts how a game
# unfolds passes on one machine and fails on the other. Compile them for a generic x86-64 CPU in
# tests, so every machine runs the same code. Set before numba is imported; rsim worker
# processes inherit it.
os.environ.setdefault("NUMBA_CPU_NAME", "generic")


def pytest_addoption(parser):
parser.addoption(
Expand Down
Loading