cuju-engine 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cuju_engine-0.3.0/.clang-format +17 -0
- cuju_engine-0.3.0/.dockerignore +5 -0
- cuju_engine-0.3.0/.gitattributes +4 -0
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/bug.yml +27 -0
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/config.yml +8 -0
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/difference.yml +58 -0
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/grf-feature.yml +20 -0
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/install.yml +30 -0
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/performance.yml +22 -0
- cuju_engine-0.3.0/.github/pull_request_template.md +6 -0
- cuju_engine-0.3.0/.github/workflows/ci.yml +124 -0
- cuju_engine-0.3.0/.github/workflows/release.yml +492 -0
- cuju_engine-0.3.0/.gitignore +7 -0
- cuju_engine-0.3.0/CHANGELOG.md +437 -0
- cuju_engine-0.3.0/CITATION.cff +60 -0
- cuju_engine-0.3.0/CMakeLists.txt +296 -0
- cuju_engine-0.3.0/CODE_OF_CONDUCT.md +119 -0
- cuju_engine-0.3.0/CONTRIBUTING.md +107 -0
- cuju_engine-0.3.0/Dockerfile +43 -0
- cuju_engine-0.3.0/LICENSE +202 -0
- cuju_engine-0.3.0/LICENSES/BSD-3-Clause.txt +31 -0
- cuju_engine-0.3.0/LICENSES/BSL-1.0.txt +23 -0
- cuju_engine-0.3.0/LICENSES/CC-BY-4.0.txt +396 -0
- cuju_engine-0.3.0/LICENSES/LGPL-2.1-or-later.txt +502 -0
- cuju_engine-0.3.0/LICENSES/MIT-Mesa.txt +26 -0
- cuju_engine-0.3.0/LICENSES/MIT-gym.txt +23 -0
- cuju_engine-0.3.0/LICENSES/MIT.txt +23 -0
- cuju_engine-0.3.0/LICENSES/OFL-1.1.txt +93 -0
- cuju_engine-0.3.0/LICENSES/SunPro.txt +8 -0
- cuju_engine-0.3.0/LICENSES/Unlicense.txt +24 -0
- cuju_engine-0.3.0/LICENSES/Zlib.txt +20 -0
- cuju_engine-0.3.0/NOTICE +56 -0
- cuju_engine-0.3.0/PKG-INFO +325 -0
- cuju_engine-0.3.0/README.md +270 -0
- cuju_engine-0.3.0/SECURITY.md +46 -0
- cuju_engine-0.3.0/apptainer.def +39 -0
- cuju_engine-0.3.0/ci/check_links.py +368 -0
- cuju_engine-0.3.0/ci/check_wheel.py +204 -0
- cuju_engine-0.3.0/ci/compare_builds.py +129 -0
- cuju_engine-0.3.0/ci/cpu_only.py +43 -0
- cuju_engine-0.3.0/ci/data_checksums.py +27 -0
- cuju_engine-0.3.0/ci/install_cuda.sh +33 -0
- cuju_engine-0.3.0/ci/make_glyph_atlas.py +651 -0
- cuju_engine-0.3.0/ci/make_render_media.py +285 -0
- cuju_engine-0.3.0/ci/port_gfootball.py +381 -0
- cuju_engine-0.3.0/docs/api.md +631 -0
- cuju_engine-0.3.0/docs/backends.md +409 -0
- cuju_engine-0.3.0/docs/concepts.md +145 -0
- cuju_engine-0.3.0/docs/custom-scenarios.md +163 -0
- cuju_engine-0.3.0/docs/differences-from-grf.md +299 -0
- cuju_engine-0.3.0/docs/episodes-and-seeds.md +254 -0
- cuju_engine-0.3.0/docs/exactness.md +285 -0
- cuju_engine-0.3.0/docs/faq.md +245 -0
- cuju_engine-0.3.0/docs/index.md +152 -0
- cuju_engine-0.3.0/docs/installation.md +550 -0
- cuju_engine-0.3.0/docs/migrating-from-grf.md +765 -0
- cuju_engine-0.3.0/docs/observations.md +382 -0
- cuju_engine-0.3.0/docs/performance.md +295 -0
- cuju_engine-0.3.0/docs/recipes.md +435 -0
- cuju_engine-0.3.0/docs/rendering.md +714 -0
- cuju_engine-0.3.0/docs/rewards-and-actions.md +201 -0
- cuju_engine-0.3.0/docs/scenarios.md +184 -0
- cuju_engine-0.3.0/docs/states.md +256 -0
- cuju_engine-0.3.0/examples/README.md +65 -0
- cuju_engine-0.3.0/examples/benchmark.py +110 -0
- cuju_engine-0.3.0/examples/compare_with_grf.py +390 -0
- cuju_engine-0.3.0/examples/cuda_graph_step.py +59 -0
- cuju_engine-0.3.0/examples/cuju_quickstart.ipynb +633 -0
- cuju_engine-0.3.0/examples/dumps.py +92 -0
- cuju_engine-0.3.0/examples/evaluate.py +116 -0
- cuju_engine-0.3.0/examples/kaggle_agent.py +73 -0
- cuju_engine-0.3.0/examples/mixed_batch.py +57 -0
- cuju_engine-0.3.0/examples/multi_gpu.py +91 -0
- cuju_engine-0.3.0/examples/ppo.py +285 -0
- cuju_engine-0.3.0/examples/random_rollout.py +57 -0
- cuju_engine-0.3.0/examples/self_play.py +131 -0
- cuju_engine-0.3.0/examples/states.py +138 -0
- cuju_engine-0.3.0/include/cuju/ai_time.h +409 -0
- cuju_engine-0.3.0/include/cuju/animation/animation_data.h +307 -0
- cuju_engine-0.3.0/include/cuju/animation/animation_derived.h +168 -0
- cuju_engine-0.3.0/include/cuju/animation/apply.h +367 -0
- cuju_engine-0.3.0/include/cuju/animation/keyframes.h +194 -0
- cuju_engine-0.3.0/include/cuju/animation/skeleton.h +238 -0
- cuju_engine-0.3.0/include/cuju/assets/scenario_builder.h +801 -0
- cuju_engine-0.3.0/include/cuju/ball.h +348 -0
- cuju_engine-0.3.0/include/cuju/batch/agent_setup.h +164 -0
- cuju_engine-0.3.0/include/cuju/batch/batch_core.h +866 -0
- cuju_engine-0.3.0/include/cuju/batch/batch_environment.h +778 -0
- cuju_engine-0.3.0/include/cuju/batch/memory_estimate.h +72 -0
- cuju_engine-0.3.0/include/cuju/batch/render_states.h +63 -0
- cuju_engine-0.3.0/include/cuju/batch/stacked_state.h +82 -0
- cuju_engine-0.3.0/include/cuju/batch/state_difference.h +128 -0
- cuju_engine-0.3.0/include/cuju/batch/tables.h +93 -0
- cuju_engine-0.3.0/include/cuju/cpu/batch_environment.h +467 -0
- cuju_engine-0.3.0/include/cuju/cpu/job_thread.h +121 -0
- cuju_engine-0.3.0/include/cuju/cpu/placement.h +214 -0
- cuju_engine-0.3.0/include/cuju/cpu/processors.h +152 -0
- cuju_engine-0.3.0/include/cuju/engine/engine_info.h +95 -0
- cuju_engine-0.3.0/include/cuju/engine/game_engine.h +782 -0
- cuju_engine-0.3.0/include/cuju/file_path.h +24 -0
- cuju_engine-0.3.0/include/cuju/floating_point.h +60 -0
- cuju_engine-0.3.0/include/cuju/game_definitions.h +36 -0
- cuju_engine-0.3.0/include/cuju/gpu/batch_environment.cuh +247 -0
- cuju_engine-0.3.0/include/cuju/gpu/device_data.h +138 -0
- cuju_engine-0.3.0/include/cuju/host_device.h +46 -0
- cuju_engine-0.3.0/include/cuju/inline_vector.h +95 -0
- cuju_engine-0.3.0/include/cuju/libm/acos_double.h +143 -0
- cuju_engine-0.3.0/include/cuju/libm/asinf.h +95 -0
- cuju_engine-0.3.0/include/cuju/libm/common.h +120 -0
- cuju_engine-0.3.0/include/cuju/libm/inverse_trigonometric_float.h +272 -0
- cuju_engine-0.3.0/include/cuju/libm/pow.h +651 -0
- cuju_engine-0.3.0/include/cuju/libm/powf.h +198 -0
- cuju_engine-0.3.0/include/cuju/libm/sin_double.h +266 -0
- cuju_engine-0.3.0/include/cuju/libm/sincos_double.h +19 -0
- cuju_engine-0.3.0/include/cuju/libm/sincosf.h +212 -0
- cuju_engine-0.3.0/include/cuju/libm/tan_double.h +285 -0
- cuju_engine-0.3.0/include/cuju/libm/tanf.h +136 -0
- cuju_engine-0.3.0/include/cuju/libm/trigonometric_double.h +8 -0
- cuju_engine-0.3.0/include/cuju/libm/trigonometric_tables_double.h +1408 -0
- cuju_engine-0.3.0/include/cuju/math_utilities.h +41 -0
- cuju_engine-0.3.0/include/cuju/nvtx.h +44 -0
- cuju_engine-0.3.0/include/cuju/possession.h +123 -0
- cuju_engine-0.3.0/include/cuju/profiling.h +70 -0
- cuju_engine-0.3.0/include/cuju/quaternion.h +286 -0
- cuju_engine-0.3.0/include/cuju/real_to_string.h +53 -0
- cuju_engine-0.3.0/include/cuju/render/extract_render_state.h +311 -0
- cuju_engine-0.3.0/include/cuju/render/render_state.h +168 -0
- cuju_engine-0.3.0/include/cuju/rng.h +115 -0
- cuju_engine-0.3.0/include/cuju/simulation/access.h +65 -0
- cuju_engine-0.3.0/include/cuju/simulation/ai_controller.h +2509 -0
- cuju_engine-0.3.0/include/cuju/simulation/ai_functions.h +190 -0
- cuju_engine-0.3.0/include/cuju/simulation/ball_touch.h +143 -0
- cuju_engine-0.3.0/include/cuju/simulation/camera.h +170 -0
- cuju_engine-0.3.0/include/cuju/simulation/collisions.h +619 -0
- cuju_engine-0.3.0/include/cuju/simulation/containers.h +26 -0
- cuju_engine-0.3.0/include/cuju/simulation/enumerations.h +64 -0
- cuju_engine-0.3.0/include/cuju/simulation/environment.h +619 -0
- cuju_engine-0.3.0/include/cuju/simulation/geometry_offsets.h +200 -0
- cuju_engine-0.3.0/include/cuju/simulation/human_controller.h +117 -0
- cuju_engine-0.3.0/include/cuju/simulation/humanoid.h +425 -0
- cuju_engine-0.3.0/include/cuju/simulation/humanoid_process.h +682 -0
- cuju_engine-0.3.0/include/cuju/simulation/match_process.h +392 -0
- cuju_engine-0.3.0/include/cuju/simulation/observation_encoding.h +182 -0
- cuju_engine-0.3.0/include/cuju/simulation/officials.h +400 -0
- cuju_engine-0.3.0/include/cuju/simulation/player_controller.h +248 -0
- cuju_engine-0.3.0/include/cuju/simulation/player_possession.h +126 -0
- cuju_engine-0.3.0/include/cuju/simulation/referee.h +356 -0
- cuju_engine-0.3.0/include/cuju/simulation/render_mode.h +196 -0
- cuju_engine-0.3.0/include/cuju/simulation/reset.h +731 -0
- cuju_engine-0.3.0/include/cuju/simulation/select_animation.h +2828 -0
- cuju_engine-0.3.0/include/cuju/simulation/state_io.h +94 -0
- cuju_engine-0.3.0/include/cuju/simulation/static_data.h +108 -0
- cuju_engine-0.3.0/include/cuju/simulation/team_ai.h +533 -0
- cuju_engine-0.3.0/include/cuju/simulation/team_process.h +320 -0
- cuju_engine-0.3.0/include/cuju/simulation/team_select.h +207 -0
- cuju_engine-0.3.0/include/cuju/simulation/touch.h +400 -0
- cuju_engine-0.3.0/include/cuju/simulation/world.h +264 -0
- cuju_engine-0.3.0/include/cuju/span.h +27 -0
- cuju_engine-0.3.0/include/cuju/state/archive.h +195 -0
- cuju_engine-0.3.0/include/cuju/state/environment_state.h +892 -0
- cuju_engine-0.3.0/include/cuju/vector3.h +232 -0
- cuju_engine-0.3.0/include/cuju/warp.h +252 -0
- cuju_engine-0.3.0/include/cuju/work_area.h +99 -0
- cuju_engine-0.3.0/include/cuju/x86.h +35 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/LICENSE +202 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/README.md +78 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/pyproject.toml +50 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__init__.py +28 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__main__.py +10 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_startup.py +224 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_version.py +5 -0
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball.pth +1 -0
- cuju_engine-0.3.0/packaging/cuju-grf-media/.gitignore +7 -0
- cuju_engine-0.3.0/packaging/cuju-grf-media/NOTICE +31 -0
- cuju_engine-0.3.0/packaging/cuju-grf-media/README.md +18 -0
- cuju_engine-0.3.0/packaging/cuju-grf-media/pyproject.toml +39 -0
- cuju_engine-0.3.0/packaging/cuju-grf-media/sources.txt +113 -0
- cuju_engine-0.3.0/packaging/cuju-grf-media/src/cuju_grf_media/__init__.py +9 -0
- cuju_engine-0.3.0/pyproject.toml +139 -0
- cuju_engine-0.3.0/python/cuju/__init__.py +217 -0
- cuju_engine-0.3.0/python/cuju/__main__.py +262 -0
- cuju_engine-0.3.0/python/cuju/_batch/__init__.py +4 -0
- cuju_engine-0.3.0/python/cuju/_batch/allocator.py +52 -0
- cuju_engine-0.3.0/python/cuju/_batch/assets.py +68 -0
- cuju_engine-0.3.0/python/cuju/_batch/environment.py +1890 -0
- cuju_engine-0.3.0/python/cuju/_batch/frame_stack.py +114 -0
- cuju_engine-0.3.0/python/cuju/_batch/library.py +190 -0
- cuju_engine-0.3.0/python/cuju/_batch/log.py +103 -0
- cuju_engine-0.3.0/python/cuju/_batch/memory.py +70 -0
- cuju_engine-0.3.0/python/cuju/_batch/operators.py +55 -0
- cuju_engine-0.3.0/python/cuju/_batch/pinned.py +39 -0
- cuju_engine-0.3.0/python/cuju/_batch/pixels.py +207 -0
- cuju_engine-0.3.0/python/cuju/_batch/state.py +77 -0
- cuju_engine-0.3.0/python/cuju/_checksums.py +60 -0
- cuju_engine-0.3.0/python/cuju/_cli_contract.py +244 -0
- cuju_engine-0.3.0/python/cuju/_cli_parsers.py +191 -0
- cuju_engine-0.3.0/python/cuju/_completion.py +277 -0
- cuju_engine-0.3.0/python/cuju/_dump_to_txt.py +66 -0
- cuju_engine-0.3.0/python/cuju/_grf_config.py +331 -0
- cuju_engine-0.3.0/python/cuju/_library_path.py +141 -0
- cuju_engine-0.3.0/python/cuju/_media.py +113 -0
- cuju_engine-0.3.0/python/cuju/_pixels.py +276 -0
- cuju_engine-0.3.0/python/cuju/_plugins.py +106 -0
- cuju_engine-0.3.0/python/cuju/_python_players.py +224 -0
- cuju_engine-0.3.0/python/cuju/_replay_command.py +109 -0
- cuju_engine-0.3.0/python/cuju/_replay_player.py +42 -0
- cuju_engine-0.3.0/python/cuju/_replays.py +414 -0
- cuju_engine-0.3.0/python/cuju/_script_helpers.py +109 -0
- cuju_engine-0.3.0/python/cuju/_version.py +6 -0
- cuju_engine-0.3.0/python/cuju/action_log.py +371 -0
- cuju_engine-0.3.0/python/cuju/check.py +596 -0
- cuju_engine-0.3.0/python/cuju/data/SHA256SUMS +20 -0
- cuju_engine-0.3.0/python/cuju/data/animations.bin +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_competition_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_easy_stochastic_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_hard_stochastic_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_kaggle_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_stochastic_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/1_vs_1_easy_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/5_vs_5_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_3_vs_1_with_keeper_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_corner_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_counterattack_easy_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_counterattack_hard_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_empty_goal_close_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_empty_goal_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_run_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_run_to_score_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_run_to_score_with_keeper_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/academy_single_goal_versus_lazy_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/assets/test_example_multiagent_l0_r0.cjb +0 -0
- cuju_engine-0.3.0/python/cuju/data/digests.json +186 -0
- cuju_engine-0.3.0/python/cuju/data/render_digests.json.z +0 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_competition.py +45 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_easy_stochastic.py +44 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_hard_stochastic.py +44 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_kaggle.py +46 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_stochastic.py +44 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/1_vs_1_easy.py +25 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/5_vs_5.py +33 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_3_vs_1_with_keeper.py +28 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_corner.py +45 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_counterattack_easy.py +45 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_counterattack_hard.py +45 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_empty_goal.py +25 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_empty_goal_close.py +25 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_pass_and_shoot_with_keeper.py +27 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_run_pass_and_shoot_with_keeper.py +27 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_run_to_score.py +30 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_run_to_score_with_keeper.py +30 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/academy_single_goal_versus_lazy.py +49 -0
- cuju_engine-0.3.0/python/cuju/data/scenarios/test_example_multiagent.py +28 -0
- cuju_engine-0.3.0/python/cuju/dumps.py +942 -0
- cuju_engine-0.3.0/python/cuju/engine_status.py +106 -0
- cuju_engine-0.3.0/python/cuju/env.py +1168 -0
- cuju_engine-0.3.0/python/cuju/errors.py +108 -0
- cuju_engine-0.3.0/python/cuju/gfootball/GRF_SOURCES +86 -0
- cuju_engine-0.3.0/python/cuju/gfootball/__init__.py +60 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_cv2.py +43 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/__init__.py +88 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/GYM_SOURCES +22 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/__init__.py +43 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/core.py +361 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/envs/__init__.py +19 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/envs/registration.py +284 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/error.py +230 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/logger.py +56 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/__init__.py +30 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/box.py +171 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/dict.py +162 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/discrete.py +41 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_binary.py +61 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_discrete.py +77 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/space.py +94 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/tuple.py +96 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/utils.py +228 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/__init__.py +13 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/closer.py +72 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/colorize.py +36 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/ezpickle.py +37 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/json_utils.py +27 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/seeding.py +101 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/version.py +5 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/__init__.py +8 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/order_enforcing.py +20 -0
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/time_limit.py +31 -0
- cuju_engine-0.3.0/python/cuju/gfootball/dump_to_txt.py +49 -0
- cuju_engine-0.3.0/python/cuju/gfootball/dump_to_video.py +33 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/__init__.py +271 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/config.py +163 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/constants.py +33 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/controller_base.py +114 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/event_queue.py +54 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set.py +220 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set_test.py +76 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_env.py +225 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_core.py +447 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_test.py +692 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/gym_test.py +47 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_preprocessing.py +94 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_processor.py +526 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation.py +163 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation_test.py +84 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/player_base.py +46 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/__init__.py +16 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/agent.py +39 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/bot.py +217 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/gamepad.py +81 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/keyboard.py +72 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/lazy.py +31 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/ppo2_cnn.py +119 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/replay.py +40 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/remote_football_env.py +189 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/scenario_builder.py +125 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers.py +130 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers_test.py +107 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers.py +440 -0
- cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers_test.py +150 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/__init__.py +17 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/config.py +30 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/example_client.py +107 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server.proto +62 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2.py +501 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2_grpc.py +113 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master.proto +25 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2.py +184 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2_grpc.py +62 -0
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/utils.py +52 -0
- cuju_engine-0.3.0/python/cuju/gfootball/examples/__init__.py +16 -0
- cuju_engine-0.3.0/python/cuju/gfootball/examples/models.py +66 -0
- cuju_engine-0.3.0/python/cuju/gfootball/examples/run_multiagent_rllib.py +140 -0
- cuju_engine-0.3.0/python/cuju/gfootball/examples/run_ppo2.py +123 -0
- cuju_engine-0.3.0/python/cuju/gfootball/play_game.py +73 -0
- cuju_engine-0.3.0/python/cuju/gfootball/replay.py +43 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_competition.py +59 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_easy_stochastic.py +57 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_hard_stochastic.py +57 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_kaggle.py +60 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_stochastic.py +57 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/1_vs_1_easy.py +39 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/5_vs_5.py +46 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/__init__.py +31 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_3_vs_1_with_keeper.py +42 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_corner.py +59 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_easy.py +59 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_hard.py +59 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal.py +39 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal_close.py +39 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_pass_and_shoot_with_keeper.py +41 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_pass_and_shoot_with_keeper.py +41 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score.py +44 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score_with_keeper.py +44 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_single_goal_versus_lazy.py +63 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/test_example_multiagent.py +42 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_deterministic.py +58 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_easy_deterministic.py +58 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_hard_deterministic.py +58 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_deterministic.py +58 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_stochastic.py +58 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_deterministic.py +47 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_stochastic.py +47 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/__init__.py +31 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/corner_test.py +38 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/goal_test.py +35 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/keeper_test.py +38 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/kickoff_for_goal_loosing_team_test.py +34 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/multiagent_wrapper.py +60 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/offside_test.py +39 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/penalty.py +34 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/second_half.py +33 -0
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/symmetric.py +53 -0
- cuju_engine-0.3.0/python/cuju/gfootball_engine/__init__.py +31 -0
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_gameplayfootball.py +1624 -0
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_native.py +193 -0
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_pickle_names.py +114 -0
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_render_hooks.py +156 -0
- cuju_engine-0.3.0/python/cuju/kaggle.py +425 -0
- cuju_engine-0.3.0/python/cuju/multi_device.py +401 -0
- cuju_engine-0.3.0/python/cuju/players.py +260 -0
- cuju_engine-0.3.0/python/cuju/raw.py +93 -0
- cuju_engine-0.3.0/python/cuju/scenarios.py +661 -0
- cuju_engine-0.3.0/python/cuju/state.py +211 -0
- cuju_engine-0.3.0/python/cuju/wrappers.py +325 -0
- cuju_engine-0.3.0/src/cuju_cpu.cpp +39 -0
- cuju_engine-0.3.0/src/cuju_cuda.cu +14 -0
- cuju_engine-0.3.0/src/engine_api.h +487 -0
- cuju_engine-0.3.0/src/environment_api.h +623 -0
- cuju_engine-0.3.0/src/environment_state.cpp +103 -0
- cuju_engine-0.3.0/src/render/CMakeLists.txt +39 -0
- cuju_engine-0.3.0/src/render/assets/ase.cpp +368 -0
- cuju_engine-0.3.0/src/render/assets/assets.h +147 -0
- cuju_engine-0.3.0/src/render/assets/geometry.cpp +185 -0
- cuju_engine-0.3.0/src/render/assets/object.cpp +202 -0
- cuju_engine-0.3.0/src/render/assets/surface.cpp +58 -0
- cuju_engine-0.3.0/src/render/assets/text.cpp +108 -0
- cuju_engine-0.3.0/src/render/assets/text.h +40 -0
- cuju_engine-0.3.0/src/render/fpenv.cpp +188 -0
- cuju_engine-0.3.0/src/render/fpenv.h +225 -0
- cuju_engine-0.3.0/src/render/frame.cpp +531 -0
- cuju_engine-0.3.0/src/render/frame.h +172 -0
- cuju_engine-0.3.0/src/render/gl/context.cpp +911 -0
- cuju_engine-0.3.0/src/render/gl/context.h +294 -0
- cuju_engine-0.3.0/src/render/gl/draw.cpp +566 -0
- cuju_engine-0.3.0/src/render/gl/fragment.cpp +424 -0
- cuju_engine-0.3.0/src/render/gl/fragment.h +131 -0
- cuju_engine-0.3.0/src/render/gl/mip_cache.cpp +95 -0
- cuju_engine-0.3.0/src/render/gl/mip_cache.h +49 -0
- cuju_engine-0.3.0/src/render/gl/pipeline.h +241 -0
- cuju_engine-0.3.0/src/render/gl/program.cpp +118 -0
- cuju_engine-0.3.0/src/render/gl/program.h +189 -0
- cuju_engine-0.3.0/src/render/gl/scene.cpp +868 -0
- cuju_engine-0.3.0/src/render/gl/setup.cpp +388 -0
- cuju_engine-0.3.0/src/render/lanes.h +480 -0
- cuju_engine-0.3.0/src/render/mipmap.cpp +286 -0
- cuju_engine-0.3.0/src/render/mipmap.h +31 -0
- cuju_engine-0.3.0/src/render/numerics.h +116 -0
- cuju_engine-0.3.0/src/render/overlay2d/atlas.cpp +262 -0
- cuju_engine-0.3.0/src/render/overlay2d/atlas.h +101 -0
- cuju_engine-0.3.0/src/render/overlay2d/overlay.cpp +294 -0
- cuju_engine-0.3.0/src/render/overlay2d/overlay.h +135 -0
- cuju_engine-0.3.0/src/render/overlay2d/rotozoom.cpp +123 -0
- cuju_engine-0.3.0/src/render/overlay2d/surface.cpp +96 -0
- cuju_engine-0.3.0/src/render/overlay2d/surface.h +63 -0
- cuju_engine-0.3.0/src/render/pitch/bmp.cpp +119 -0
- cuju_engine-0.3.0/src/render/pitch/bmp.h +32 -0
- cuju_engine-0.3.0/src/render/pitch/perlin.cpp +109 -0
- cuju_engine-0.3.0/src/render/pitch/perlin.h +49 -0
- cuju_engine-0.3.0/src/render/pitch/pitch.cpp +686 -0
- cuju_engine-0.3.0/src/render/pitch/pitch.h +72 -0
- cuju_engine-0.3.0/src/render/pixels.cpp +564 -0
- cuju_engine-0.3.0/src/render/pixels.h +78 -0
- cuju_engine-0.3.0/src/render/polynomials.h +118 -0
- cuju_engine-0.3.0/src/render/render_api.cpp +339 -0
- cuju_engine-0.3.0/src/render/render_api.h +92 -0
- cuju_engine-0.3.0/src/render/sampler.cpp +964 -0
- cuju_engine-0.3.0/src/render/sampler.h +69 -0
- cuju_engine-0.3.0/src/render/scene/gl_stream.cpp +532 -0
- cuju_engine-0.3.0/src/render/scene/gl_stream.h +239 -0
- cuju_engine-0.3.0/src/render/scene/grf_math.cpp +137 -0
- cuju_engine-0.3.0/src/render/scene/grf_math.h +270 -0
- cuju_engine-0.3.0/src/render/scene/gui.cpp +380 -0
- cuju_engine-0.3.0/src/render/scene/gui.h +162 -0
- cuju_engine-0.3.0/src/render/scene/match.cpp +625 -0
- cuju_engine-0.3.0/src/render/scene/match.h +203 -0
- cuju_engine-0.3.0/src/render/scene/netting.cpp +120 -0
- cuju_engine-0.3.0/src/render/scene/netting.h +56 -0
- cuju_engine-0.3.0/src/render/scene/random.h +56 -0
- cuju_engine-0.3.0/src/render/scene/renderer3d.cpp +868 -0
- cuju_engine-0.3.0/src/render/scene/renderer3d.h +242 -0
- cuju_engine-0.3.0/src/render/scene/scene.cpp +832 -0
- cuju_engine-0.3.0/src/render/scene/scene.h +269 -0
- cuju_engine-0.3.0/src/render/scene/skinning.cpp +322 -0
- cuju_engine-0.3.0/src/render/scene/skinning.h +90 -0
- cuju_engine-0.3.0/src/render/scene/vertex_colors.cpp +82 -0
- cuju_engine-0.3.0/src/render/scene/vertex_colors.h +23 -0
- cuju_engine-0.3.0/src/render/sha256.cpp +102 -0
- cuju_engine-0.3.0/src/render/sha256.h +39 -0
- cuju_engine-0.3.0/src/render/shaders/ambient.cpp +312 -0
- cuju_engine-0.3.0/src/render/shaders/ambient.h +45 -0
- cuju_engine-0.3.0/src/render/shaders/lighting.cpp +303 -0
- cuju_engine-0.3.0/src/render/shaders/lighting.h +46 -0
- cuju_engine-0.3.0/src/render/shaders/overlay.cpp +96 -0
- cuju_engine-0.3.0/src/render/shaders/overlay.h +32 -0
- cuju_engine-0.3.0/src/render/shaders/postprocess.cpp +237 -0
- cuju_engine-0.3.0/src/render/shaders/postprocess.h +39 -0
- cuju_engine-0.3.0/src/render/shaders/quad_vs.h +40 -0
- cuju_engine-0.3.0/src/render/shaders/simple.cpp +289 -0
- cuju_engine-0.3.0/src/render/shaders/simple.h +36 -0
- cuju_engine-0.3.0/src/render/shaders/zphase.cpp +72 -0
- cuju_engine-0.3.0/src/render/shaders/zphase.h +30 -0
- cuju_engine-0.3.0/src/render/srgb.h +53 -0
- cuju_engine-0.3.0/src/render/texture.h +85 -0
- cuju_engine-0.3.0/src/scenario_api.h +118 -0
- cuju_engine-0.3.0/src/state_api.h +123 -0
- cuju_engine-0.3.0/tests/conftest.py +98 -0
- cuju_engine-0.3.0/tests/data/render_5_vs_5_seed_0.bin.z +0 -0
- cuju_engine-0.3.0/tests/test_action_log.py +122 -0
- cuju_engine-0.3.0/tests/test_allocator.py +67 -0
- cuju_engine-0.3.0/tests/test_async.py +157 -0
- cuju_engine-0.3.0/tests/test_auto_device.py +36 -0
- cuju_engine-0.3.0/tests/test_backends.py +19 -0
- cuju_engine-0.3.0/tests/test_bundle_cache.py +158 -0
- cuju_engine-0.3.0/tests/test_check.py +216 -0
- cuju_engine-0.3.0/tests/test_cli.py +563 -0
- cuju_engine-0.3.0/tests/test_cli_conformance.py +439 -0
- cuju_engine-0.3.0/tests/test_compare_with_grf.py +185 -0
- cuju_engine-0.3.0/tests/test_compile.py +104 -0
- cuju_engine-0.3.0/tests/test_data_checksums.py +38 -0
- cuju_engine-0.3.0/tests/test_device_checks.py +148 -0
- cuju_engine-0.3.0/tests/test_devices.py +53 -0
- cuju_engine-0.3.0/tests/test_difficulty.py +34 -0
- cuju_engine-0.3.0/tests/test_digests.py +53 -0
- cuju_engine-0.3.0/tests/test_distribution.py +252 -0
- cuju_engine-0.3.0/tests/test_dump_replay.py +105 -0
- cuju_engine-0.3.0/tests/test_dumps.py +301 -0
- cuju_engine-0.3.0/tests/test_engine_module.py +455 -0
- cuju_engine-0.3.0/tests/test_engine_render_mode.py +224 -0
- cuju_engine-0.3.0/tests/test_env.py +353 -0
- cuju_engine-0.3.0/tests/test_errors.py +91 -0
- cuju_engine-0.3.0/tests/test_first_index.py +54 -0
- cuju_engine-0.3.0/tests/test_fork.py +101 -0
- cuju_engine-0.3.0/tests/test_gfootball.py +142 -0
- cuju_engine-0.3.0/tests/test_gfootball_alias.py +670 -0
- cuju_engine-0.3.0/tests/test_gfootball_port.py +301 -0
- cuju_engine-0.3.0/tests/test_gpu_errors.py +21 -0
- cuju_engine-0.3.0/tests/test_grf_config.py +109 -0
- cuju_engine-0.3.0/tests/test_grf_suite.py +136 -0
- cuju_engine-0.3.0/tests/test_import.py +133 -0
- cuju_engine-0.3.0/tests/test_kaggle.py +186 -0
- cuju_engine-0.3.0/tests/test_long.py +69 -0
- cuju_engine-0.3.0/tests/test_masked_reset.py +119 -0
- cuju_engine-0.3.0/tests/test_memory.py +106 -0
- cuju_engine-0.3.0/tests/test_memory_estimate.py +333 -0
- cuju_engine-0.3.0/tests/test_multi_device.py +136 -0
- cuju_engine-0.3.0/tests/test_nvtx.py +40 -0
- cuju_engine-0.3.0/tests/test_observers.py +446 -0
- cuju_engine-0.3.0/tests/test_players.py +274 -0
- cuju_engine-0.3.0/tests/test_plugins.py +297 -0
- cuju_engine-0.3.0/tests/test_port_vs_env.py +74 -0
- cuju_engine-0.3.0/tests/test_processors.py +75 -0
- cuju_engine-0.3.0/tests/test_python_players.py +227 -0
- cuju_engine-0.3.0/tests/test_referee_animations.py +57 -0
- cuju_engine-0.3.0/tests/test_render_frames.py +954 -0
- cuju_engine-0.3.0/tests/test_render_media.py +389 -0
- cuju_engine-0.3.0/tests/test_reset_seeds.py +87 -0
- cuju_engine-0.3.0/tests/test_roles.py +103 -0
- cuju_engine-0.3.0/tests/test_shapes.py +55 -0
- cuju_engine-0.3.0/tests/test_stacked_state.py +155 -0
- cuju_engine-0.3.0/tests/test_state.py +76 -0
- cuju_engine-0.3.0/tests/test_state_errors.py +52 -0
- cuju_engine-0.3.0/tests/test_version.py +56 -0
- cuju_engine-0.3.0/tests/test_wrappers.py +262 -0
- cuju_engine-0.3.0/tests/test_write_dump.py +105 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
BasedOnStyle: Google
|
|
2
|
+
Language: Cpp
|
|
3
|
+
Standard: c++17
|
|
4
|
+
ColumnLimit: 100
|
|
5
|
+
IndentWidth: 4
|
|
6
|
+
ContinuationIndentWidth: 4
|
|
7
|
+
ConstructorInitializerIndentWidth: 4
|
|
8
|
+
AccessModifierOffset: -4
|
|
9
|
+
DerivePointerAlignment: false
|
|
10
|
+
PointerAlignment: Right
|
|
11
|
+
ReferenceAlignment: Right
|
|
12
|
+
AllowShortFunctionsOnASingleLine: All
|
|
13
|
+
AllowShortIfStatementsOnASingleLine: WithoutElse
|
|
14
|
+
AllowShortLoopsOnASingleLine: true
|
|
15
|
+
IncludeBlocks: Preserve
|
|
16
|
+
SortIncludes: Never
|
|
17
|
+
ReflowComments: true
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Copyright 2026 The cuju Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
name: Bug
|
|
5
|
+
description: Something else doesn't work as the documentation says.
|
|
6
|
+
labels: [bug]
|
|
7
|
+
body:
|
|
8
|
+
- type: input
|
|
9
|
+
id: cuju-version
|
|
10
|
+
attributes:
|
|
11
|
+
label: cuju version
|
|
12
|
+
validations:
|
|
13
|
+
required: true
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: reproduce
|
|
16
|
+
attributes:
|
|
17
|
+
label: How to reproduce it
|
|
18
|
+
description: The shortest code that shows the problem.
|
|
19
|
+
render: python
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: expected
|
|
24
|
+
attributes:
|
|
25
|
+
label: What you expected, and what happened
|
|
26
|
+
validations:
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Copyright 2026 The cuju Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
name: Difference from GRF
|
|
5
|
+
description: cuju and Google Research Football give different outputs for the same input.
|
|
6
|
+
labels: [difference]
|
|
7
|
+
body:
|
|
8
|
+
- type: markdown
|
|
9
|
+
attributes:
|
|
10
|
+
value: |
|
|
11
|
+
Thank you. A difference we can reproduce is a bug, and we fix it toward GRF.
|
|
12
|
+
The fastest way to a fix is the state from `get_state` just before the two diverge.
|
|
13
|
+
- type: input
|
|
14
|
+
id: cuju-version
|
|
15
|
+
attributes:
|
|
16
|
+
label: cuju version
|
|
17
|
+
description: "`python -c \"import importlib.metadata as m; print(m.version('cuju-engine'))\"`"
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
- type: dropdown
|
|
21
|
+
id: backend
|
|
22
|
+
attributes:
|
|
23
|
+
label: Backend
|
|
24
|
+
options: [cuda, cpu, both]
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
27
|
+
- type: textarea
|
|
28
|
+
id: grf-build
|
|
29
|
+
attributes:
|
|
30
|
+
label: Your GRF
|
|
31
|
+
description: The GRF version or commit, the operating system, and the glibc and GCC it was built with.
|
|
32
|
+
validations:
|
|
33
|
+
required: true
|
|
34
|
+
- type: textarea
|
|
35
|
+
id: setup
|
|
36
|
+
attributes:
|
|
37
|
+
label: Scenario, options and seed
|
|
38
|
+
description: The `BatchEnvironment` call, and the `create_environment` call on the GRF side.
|
|
39
|
+
render: python
|
|
40
|
+
validations:
|
|
41
|
+
required: true
|
|
42
|
+
- type: textarea
|
|
43
|
+
id: divergence
|
|
44
|
+
attributes:
|
|
45
|
+
label: Where they diverge
|
|
46
|
+
description: The first step that differs and what differs (observation, reward, done flag or state).
|
|
47
|
+
validations:
|
|
48
|
+
required: true
|
|
49
|
+
- type: textarea
|
|
50
|
+
id: attachments
|
|
51
|
+
attributes:
|
|
52
|
+
label: State and actions
|
|
53
|
+
description: Attach the state bytes and the actions that reproduce it, if you can.
|
|
54
|
+
- type: textarea
|
|
55
|
+
id: self-check
|
|
56
|
+
attributes:
|
|
57
|
+
label: "Output of `pytest tests/`"
|
|
58
|
+
render: text
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright 2026 The cuju Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
name: Missing GRF feature
|
|
5
|
+
description: Something Google Research Football offers that cuju doesn't.
|
|
6
|
+
labels: [grf-feature]
|
|
7
|
+
body:
|
|
8
|
+
- type: input
|
|
9
|
+
id: grf-call
|
|
10
|
+
attributes:
|
|
11
|
+
label: The GRF call or option
|
|
12
|
+
description: Such as an option of `create_environment` or a wrapper.
|
|
13
|
+
validations:
|
|
14
|
+
required: true
|
|
15
|
+
- type: textarea
|
|
16
|
+
id: use
|
|
17
|
+
attributes:
|
|
18
|
+
label: What you use it for
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Copyright 2026 The cuju Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
name: Installation problem
|
|
5
|
+
description: cuju doesn't install, build or load.
|
|
6
|
+
labels: [install]
|
|
7
|
+
body:
|
|
8
|
+
- type: dropdown
|
|
9
|
+
id: route
|
|
10
|
+
attributes:
|
|
11
|
+
label: How you installed
|
|
12
|
+
options: [pip install cuju, pip install cuju-engine, from source, Docker, WSL2]
|
|
13
|
+
validations:
|
|
14
|
+
required: true
|
|
15
|
+
- type: textarea
|
|
16
|
+
id: system
|
|
17
|
+
attributes:
|
|
18
|
+
label: System
|
|
19
|
+
description: |
|
|
20
|
+
The output of `nvidia-smi`, `nvcc --version` (for a source build), `python -c "import torch; print(torch.__version__, torch.version.cuda)"`, and `grep -o -w 'avx2\|bmi2\|fma' /proc/cpuinfo | sort -u`.
|
|
21
|
+
render: text
|
|
22
|
+
validations:
|
|
23
|
+
required: true
|
|
24
|
+
- type: textarea
|
|
25
|
+
id: log
|
|
26
|
+
attributes:
|
|
27
|
+
label: The error and the log
|
|
28
|
+
render: text
|
|
29
|
+
validations:
|
|
30
|
+
required: true
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Copyright 2026 The cuju Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
name: Performance
|
|
5
|
+
description: cuju runs slower than the published numbers on comparable hardware.
|
|
6
|
+
labels: [performance]
|
|
7
|
+
body:
|
|
8
|
+
- type: textarea
|
|
9
|
+
id: hardware
|
|
10
|
+
attributes:
|
|
11
|
+
label: Hardware
|
|
12
|
+
description: The GPU or CPU model, the driver, and how many cores the process may use.
|
|
13
|
+
validations:
|
|
14
|
+
required: true
|
|
15
|
+
- type: textarea
|
|
16
|
+
id: run
|
|
17
|
+
attributes:
|
|
18
|
+
label: What you ran
|
|
19
|
+
description: The command of `examples/benchmark.py`, or your own code, and the number you got.
|
|
20
|
+
render: text
|
|
21
|
+
validations:
|
|
22
|
+
required: true
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Describe what this changes and why.
|
|
2
|
+
|
|
3
|
+
- [ ] `pytest tests/` passes, on a GPU as well when the change touches it
|
|
4
|
+
- [ ] `ruff check`, `ruff format --check` and `clang-format --dry-run -Werror` pass
|
|
5
|
+
- [ ] A change to `include/` or `src/` keeps every output, or moves it toward GRF with a reproducing
|
|
6
|
+
case
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Copyright 2026 The cuju Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
name: ci
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
pull_request:
|
|
9
|
+
|
|
10
|
+
# The jobs only read the repository, so the token of every job reads alone.
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
cpu:
|
|
16
|
+
needs: grf-media
|
|
17
|
+
runs-on: ubuntu-24.04
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v7
|
|
20
|
+
- uses: actions/setup-python@v7
|
|
21
|
+
with:
|
|
22
|
+
python-version: '3.12'
|
|
23
|
+
- name: Install PyTorch for the CPU
|
|
24
|
+
run: pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
25
|
+
- name: Build and install the CPU backend
|
|
26
|
+
# hatchling builds the wheel of cuju-gfootball in the tests.
|
|
27
|
+
run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' ruff hatchling opencv-python-headless
|
|
28
|
+
- uses: actions/download-artifact@v8
|
|
29
|
+
with:
|
|
30
|
+
name: grf-media
|
|
31
|
+
path: grf-media
|
|
32
|
+
- name: Install the pinned GRF media
|
|
33
|
+
run: pip install --no-index --find-links grf-media cuju-grf-media
|
|
34
|
+
- name: Lint
|
|
35
|
+
run: |
|
|
36
|
+
ruff check python tests examples packages ci
|
|
37
|
+
ruff format --check python tests examples packages ci
|
|
38
|
+
find include src -name '*.h' -o -name '*.cuh' -o -name '*.cpp' -o -name '*.cu' \
|
|
39
|
+
| xargs clang-format-18 --dry-run -Werror
|
|
40
|
+
- name: Links of the README and the docs
|
|
41
|
+
run: python ci/check_links.py --offline
|
|
42
|
+
- name: Self-check
|
|
43
|
+
run: pytest tests
|
|
44
|
+
|
|
45
|
+
# The same expected digests on an aarch64 host, which is what lets aarch64 wheels ship.
|
|
46
|
+
cpu-arm:
|
|
47
|
+
runs-on: ubuntu-24.04-arm
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v7
|
|
50
|
+
- uses: actions/setup-python@v7
|
|
51
|
+
with:
|
|
52
|
+
python-version: '3.12'
|
|
53
|
+
- name: Install PyTorch for the CPU
|
|
54
|
+
run: pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
55
|
+
- name: Build and install the CPU backend
|
|
56
|
+
run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' opencv-python-headless
|
|
57
|
+
- name: Self-check
|
|
58
|
+
run: pytest tests
|
|
59
|
+
|
|
60
|
+
# The same expected digests from MSVC on Windows, which a Windows wheel would need first.
|
|
61
|
+
cpu-windows:
|
|
62
|
+
needs: grf-media
|
|
63
|
+
runs-on: windows-2022
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v7
|
|
66
|
+
- uses: actions/setup-python@v7
|
|
67
|
+
with:
|
|
68
|
+
python-version: '3.12'
|
|
69
|
+
- name: Install PyTorch for the CPU
|
|
70
|
+
run: pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
71
|
+
- name: Build and install the CPU backend
|
|
72
|
+
run: pip install ".[test,spaces]" ruff hatchling opencv-python-headless
|
|
73
|
+
env:
|
|
74
|
+
CMAKE_ARGS: -DCUJU_CUDA=OFF
|
|
75
|
+
- uses: actions/download-artifact@v8
|
|
76
|
+
with:
|
|
77
|
+
name: grf-media
|
|
78
|
+
path: grf-media
|
|
79
|
+
- name: Install the pinned GRF media
|
|
80
|
+
run: pip install --no-index --find-links grf-media cuju-grf-media
|
|
81
|
+
- name: Self-check
|
|
82
|
+
run: pytest tests
|
|
83
|
+
|
|
84
|
+
grf-media:
|
|
85
|
+
runs-on: ubuntu-24.04
|
|
86
|
+
steps:
|
|
87
|
+
- uses: actions/checkout@v7
|
|
88
|
+
- uses: actions/checkout@v7
|
|
89
|
+
with:
|
|
90
|
+
repository: google-research/football
|
|
91
|
+
ref: 3d9e754720a95621bba6475c4d3b0d56fe919014
|
|
92
|
+
path: grf
|
|
93
|
+
persist-credentials: false
|
|
94
|
+
- uses: actions/setup-python@v7
|
|
95
|
+
with:
|
|
96
|
+
python-version: '3.12'
|
|
97
|
+
- name: Render the glyph atlas with SDL_ttf
|
|
98
|
+
run: |
|
|
99
|
+
sudo apt-get update
|
|
100
|
+
sudo apt-get install -y libsdl2-2.0-0 libsdl2-ttf-2.0-0 libfreetype6 libharfbuzz0b
|
|
101
|
+
python ci/make_glyph_atlas.py grf/third_party/fonts/AlegreyaSansSC-ExtraBold.ttf generated
|
|
102
|
+
- name: Build and check the GRF media wheel
|
|
103
|
+
run: |
|
|
104
|
+
python ci/make_render_media.py grf --generated generated
|
|
105
|
+
pip install build
|
|
106
|
+
python -m build --wheel --outdir grf-media packaging/cuju-grf-media
|
|
107
|
+
python ci/check_wheel.py --grf-media grf-media/*.whl
|
|
108
|
+
- uses: actions/upload-artifact@v7
|
|
109
|
+
with:
|
|
110
|
+
name: grf-media
|
|
111
|
+
path: grf-media/*.whl
|
|
112
|
+
if-no-files-found: error
|
|
113
|
+
|
|
114
|
+
cuda-compile:
|
|
115
|
+
runs-on: ubuntu-24.04
|
|
116
|
+
container: nvidia/cuda:12.9.1-devel-ubuntu24.04
|
|
117
|
+
steps:
|
|
118
|
+
- uses: actions/checkout@v7
|
|
119
|
+
- name: Install the build tools
|
|
120
|
+
run: apt-get update && apt-get install -y --no-install-recommends cmake g++ make
|
|
121
|
+
- name: Compile the CUDA backend for one architecture
|
|
122
|
+
run: |
|
|
123
|
+
cmake -S . -B build -DCUJU_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=80
|
|
124
|
+
cmake --build build --target cuju_cuda -j 4
|