cuju-engine 0.3.0__tar.gz → 0.4.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.4.0/.github/workflows/ci.yml +124 -0
- cuju_engine-0.4.0/.github/workflows/release.yml +427 -0
- cuju_engine-0.4.0/CHANGELOG.md +538 -0
- cuju_engine-0.4.0/CITATION.cff +60 -0
- cuju_engine-0.4.0/CONTRIBUTING.md +123 -0
- cuju_engine-0.4.0/NOTICE +55 -0
- cuju_engine-0.4.0/PKG-INFO +184 -0
- cuju_engine-0.4.0/README.md +128 -0
- cuju_engine-0.4.0/SECURITY.md +42 -0
- cuju_engine-0.4.0/apptainer.def +39 -0
- cuju_engine-0.4.0/ci/checks/check_links.py +360 -0
- cuju_engine-0.4.0/ci/checks/check_wheel.py +191 -0
- cuju_engine-0.4.0/ci/checks/compare_builds.py +123 -0
- cuju_engine-0.4.0/ci/checks/cpu_only.py +35 -0
- cuju_engine-0.4.0/ci/checks/data_checksums.py +21 -0
- cuju_engine-0.4.0/ci/install_cuda.sh +30 -0
- cuju_engine-0.4.0/ci/make/make_glyph_atlas.py +616 -0
- cuju_engine-0.4.0/ci/make/make_render_media.py +260 -0
- cuju_engine-0.4.0/ci/make/port_gfootball.py +345 -0
- cuju_engine-0.4.0/docs/api.md +241 -0
- cuju_engine-0.4.0/docs/exactness.md +186 -0
- cuju_engine-0.4.0/docs/getting-started.md +203 -0
- cuju_engine-0.4.0/docs/migrating-from-grf.md +247 -0
- cuju_engine-0.4.0/docs/observations-rewards-actions.md +230 -0
- cuju_engine-0.4.0/docs/performance.md +198 -0
- cuju_engine-0.4.0/docs/scenarios.md +166 -0
- cuju_engine-0.4.0/examples/README.md +18 -0
- cuju_engine-0.4.0/examples/compare_with_grf.py +398 -0
- cuju_engine-0.4.0/examples/cuju_quickstart.ipynb +641 -0
- cuju_engine-0.4.0/examples/evaluate.py +116 -0
- cuju_engine-0.4.0/examples/ppo.py +288 -0
- cuju_engine-0.4.0/include/cuju/ai_time.h +387 -0
- cuju_engine-0.4.0/include/cuju/animation/animation_data.h +289 -0
- cuju_engine-0.4.0/include/cuju/animation/animation_derived.h +160 -0
- cuju_engine-0.4.0/include/cuju/animation/apply.h +347 -0
- cuju_engine-0.4.0/include/cuju/animation/keyframes.h +187 -0
- cuju_engine-0.4.0/include/cuju/animation/skeleton.h +229 -0
- cuju_engine-0.4.0/include/cuju/assets/scenario_builder.h +775 -0
- cuju_engine-0.4.0/include/cuju/ball.h +338 -0
- cuju_engine-0.4.0/include/cuju/batch/agent_setup.h +151 -0
- cuju_engine-0.4.0/include/cuju/batch/batch_core.h +790 -0
- cuju_engine-0.4.0/include/cuju/batch/batch_environment.h +703 -0
- cuju_engine-0.4.0/include/cuju/batch/memory_estimate.h +63 -0
- cuju_engine-0.4.0/include/cuju/batch/render_states.h +55 -0
- cuju_engine-0.4.0/include/cuju/batch/stacked_state.h +73 -0
- cuju_engine-0.4.0/include/cuju/batch/state_difference.h +118 -0
- cuju_engine-0.4.0/include/cuju/batch/tables.h +88 -0
- cuju_engine-0.4.0/include/cuju/cpu/batch_environment.h +425 -0
- cuju_engine-0.4.0/include/cuju/cpu/job_thread.h +110 -0
- cuju_engine-0.4.0/include/cuju/cpu/placement.h +198 -0
- cuju_engine-0.4.0/include/cuju/cpu/processors.h +137 -0
- cuju_engine-0.4.0/include/cuju/engine/engine_info.h +93 -0
- cuju_engine-0.4.0/include/cuju/engine/game_engine.h +737 -0
- cuju_engine-0.4.0/include/cuju/file_path.h +21 -0
- cuju_engine-0.4.0/include/cuju/floating_point.h +54 -0
- cuju_engine-0.4.0/include/cuju/game_definitions.h +33 -0
- cuju_engine-0.4.0/include/cuju/gpu/batch_environment.cuh +228 -0
- cuju_engine-0.4.0/include/cuju/gpu/device_data.h +121 -0
- cuju_engine-0.4.0/include/cuju/host_device.h +41 -0
- cuju_engine-0.4.0/include/cuju/inline_vector.h +86 -0
- cuju_engine-0.4.0/include/cuju/math_utilities.h +38 -0
- cuju_engine-0.4.0/include/cuju/nvtx.h +38 -0
- cuju_engine-0.4.0/include/cuju/possession.h +119 -0
- cuju_engine-0.4.0/include/cuju/profiling.h +67 -0
- cuju_engine-0.4.0/include/cuju/quaternion.h +277 -0
- cuju_engine-0.4.0/include/cuju/real_to_string.h +47 -0
- cuju_engine-0.4.0/include/cuju/render/extract_render_state.h +282 -0
- cuju_engine-0.4.0/include/cuju/render/render_state.h +131 -0
- cuju_engine-0.4.0/include/cuju/rng.h +112 -0
- cuju_engine-0.4.0/include/cuju/simulation/access.h +58 -0
- cuju_engine-0.4.0/include/cuju/simulation/ai_controller.h +2492 -0
- cuju_engine-0.4.0/include/cuju/simulation/ai_functions.h +185 -0
- cuju_engine-0.4.0/include/cuju/simulation/ball_touch.h +135 -0
- cuju_engine-0.4.0/include/cuju/simulation/camera.h +162 -0
- cuju_engine-0.4.0/include/cuju/simulation/collisions.h +611 -0
- cuju_engine-0.4.0/include/cuju/simulation/containers.h +22 -0
- cuju_engine-0.4.0/include/cuju/simulation/enumerations.h +62 -0
- cuju_engine-0.4.0/include/cuju/simulation/environment.h +593 -0
- cuju_engine-0.4.0/include/cuju/simulation/geometry_offsets.h +194 -0
- cuju_engine-0.4.0/include/cuju/simulation/human_controller.h +115 -0
- cuju_engine-0.4.0/include/cuju/simulation/humanoid.h +395 -0
- cuju_engine-0.4.0/include/cuju/simulation/humanoid_process.h +676 -0
- cuju_engine-0.4.0/include/cuju/simulation/match_process.h +378 -0
- cuju_engine-0.4.0/include/cuju/simulation/observation_encoding.h +163 -0
- cuju_engine-0.4.0/include/cuju/simulation/officials.h +388 -0
- cuju_engine-0.4.0/include/cuju/simulation/player_controller.h +241 -0
- cuju_engine-0.4.0/include/cuju/simulation/player_possession.h +121 -0
- cuju_engine-0.4.0/include/cuju/simulation/referee.h +342 -0
- cuju_engine-0.4.0/include/cuju/simulation/render_mode.h +180 -0
- cuju_engine-0.4.0/include/cuju/simulation/reset.h +717 -0
- cuju_engine-0.4.0/include/cuju/simulation/select_animation.h +2753 -0
- cuju_engine-0.4.0/include/cuju/simulation/state_io.h +87 -0
- cuju_engine-0.4.0/include/cuju/simulation/static_data.h +100 -0
- cuju_engine-0.4.0/include/cuju/simulation/team_ai.h +520 -0
- cuju_engine-0.4.0/include/cuju/simulation/team_process.h +315 -0
- cuju_engine-0.4.0/include/cuju/simulation/team_select.h +196 -0
- cuju_engine-0.4.0/include/cuju/simulation/touch.h +394 -0
- cuju_engine-0.4.0/include/cuju/simulation/world.h +235 -0
- cuju_engine-0.4.0/include/cuju/span.h +25 -0
- cuju_engine-0.4.0/include/cuju/state/archive.h +180 -0
- cuju_engine-0.4.0/include/cuju/state/environment_state.h +864 -0
- cuju_engine-0.4.0/include/cuju/vector3.h +224 -0
- cuju_engine-0.4.0/include/cuju/warp.h +222 -0
- cuju_engine-0.4.0/include/cuju/work_area.h +87 -0
- cuju_engine-0.4.0/include/cuju/x86.h +27 -0
- cuju_engine-0.4.0/packages/cuju-gfootball/README.md +78 -0
- cuju_engine-0.4.0/packages/cuju-gfootball/pyproject.toml +50 -0
- cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/__init__.py +28 -0
- cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/__main__.py +10 -0
- cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/_startup.py +224 -0
- cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/_version.py +5 -0
- cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju_gfootball.pth +1 -0
- cuju_engine-0.4.0/packaging/cuju-grf-media/.gitignore +7 -0
- cuju_engine-0.4.0/packaging/cuju-grf-media/NOTICE +31 -0
- cuju_engine-0.4.0/packaging/cuju-grf-media/README.md +18 -0
- cuju_engine-0.4.0/packaging/cuju-grf-media/pyproject.toml +39 -0
- cuju_engine-0.4.0/packaging/cuju-grf-media/sources.txt +113 -0
- cuju_engine-0.4.0/packaging/cuju-grf-media/src/cuju/grf_media/__init__.py +9 -0
- cuju_engine-0.4.0/pyproject.toml +143 -0
- cuju_engine-0.4.0/python/cuju/__init__.py +63 -0
- cuju_engine-0.4.0/python/cuju/__main__.py +253 -0
- cuju_engine-0.4.0/python/cuju/_action_log.py +277 -0
- cuju_engine-0.4.0/python/cuju/_assets.py +24 -0
- cuju_engine-0.4.0/python/cuju/_batch/__init__.py +21 -0
- cuju_engine-0.4.0/python/cuju/_batch/allocator.py +34 -0
- cuju_engine-0.4.0/python/cuju/_batch/assets.py +37 -0
- cuju_engine-0.4.0/python/cuju/_batch/environment.py +1349 -0
- cuju_engine-0.4.0/python/cuju/_batch/frame_stack.py +89 -0
- cuju_engine-0.4.0/python/cuju/_batch/library.py +180 -0
- cuju_engine-0.4.0/python/cuju/_batch/log.py +86 -0
- cuju_engine-0.4.0/python/cuju/_batch/memory.py +47 -0
- cuju_engine-0.4.0/python/cuju/_batch/operators.py +45 -0
- cuju_engine-0.4.0/python/cuju/_batch/pinned.py +28 -0
- cuju_engine-0.4.0/python/cuju/_batch/pixels.py +172 -0
- cuju_engine-0.4.0/python/cuju/_batch/state.py +65 -0
- cuju_engine-0.4.0/python/cuju/_checksums.py +42 -0
- cuju_engine-0.4.0/python/cuju/_cli_contract.py +228 -0
- cuju_engine-0.4.0/python/cuju/_cli_parsers.py +162 -0
- cuju_engine-0.4.0/python/cuju/_completion.py +291 -0
- cuju_engine-0.4.0/python/cuju/_config.py +157 -0
- cuju_engine-0.4.0/python/cuju/_dump_command.py +61 -0
- cuju_engine-0.4.0/python/cuju/_environment.py +243 -0
- cuju_engine-0.4.0/python/cuju/_grf_config.py +250 -0
- cuju_engine-0.4.0/python/cuju/_kaggle.py +268 -0
- cuju_engine-0.4.0/python/cuju/_library_path.py +113 -0
- cuju_engine-0.4.0/python/cuju/_media.py +83 -0
- cuju_engine-0.4.0/python/cuju/_pixels.py +229 -0
- cuju_engine-0.4.0/python/cuju/_players.py +191 -0
- cuju_engine-0.4.0/python/cuju/_plugins.py +45 -0
- cuju_engine-0.4.0/python/cuju/_python_players.py +179 -0
- cuju_engine-0.4.0/python/cuju/_raw.py +68 -0
- cuju_engine-0.4.0/python/cuju/_replay_command.py +75 -0
- cuju_engine-0.4.0/python/cuju/_replay_player.py +32 -0
- cuju_engine-0.4.0/python/cuju/_replays.py +321 -0
- cuju_engine-0.4.0/python/cuju/_script_helpers.py +74 -0
- cuju_engine-0.4.0/python/cuju/_state.py +149 -0
- cuju_engine-0.4.0/python/cuju/_version.py +4 -0
- cuju_engine-0.4.0/python/cuju/_wrappers.py +237 -0
- cuju_engine-0.4.0/python/cuju/check.py +607 -0
- cuju_engine-0.4.0/python/cuju/dumps.py +879 -0
- cuju_engine-0.4.0/python/cuju/engine_status.py +92 -0
- cuju_engine-0.4.0/python/cuju/env.py +912 -0
- cuju_engine-0.4.0/python/cuju/errors.py +76 -0
- cuju_engine-0.4.0/python/cuju/gfootball/__init__.py +60 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/core.py +361 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/envs/registration.py +284 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/error.py +230 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/logger.py +56 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/__init__.py +30 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/box.py +171 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/dict.py +162 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/discrete.py +41 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_binary.py +61 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_discrete.py +77 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/space.py +94 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/tuple.py +96 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/utils.py +228 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/__init__.py +13 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/closer.py +72 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/colorize.py +36 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/ezpickle.py +37 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/json_utils.py +27 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/seeding.py +101 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/version.py +5 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/wrappers/order_enforcing.py +20 -0
- cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/wrappers/time_limit.py +31 -0
- cuju_engine-0.4.0/python/cuju/gfootball/dump_to_txt.py +49 -0
- cuju_engine-0.4.0/python/cuju/gfootball/dump_to_video.py +33 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/__init__.py +271 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/config.py +163 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/constants.py +33 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/controller_base.py +114 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/event_queue.py +54 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/football_action_set.py +220 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/football_action_set_test.py +76 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/football_env.py +225 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/football_env_core.py +447 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/football_env_test.py +692 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/gym_test.py +47 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/observation_preprocessing.py +94 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/observation_processor.py +526 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/observation_rotation.py +163 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/observation_rotation_test.py +84 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/player_base.py +46 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/__init__.py +16 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/agent.py +39 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/bot.py +217 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/gamepad.py +81 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/keyboard.py +72 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/lazy.py +31 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/ppo2_cnn.py +119 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/players/replay.py +40 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/remote_football_env.py +189 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/scenario_builder.py +125 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/script_helpers.py +130 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/script_helpers_test.py +107 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/wrappers.py +440 -0
- cuju_engine-0.4.0/python/cuju/gfootball/env/wrappers_test.py +150 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/__init__.py +17 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/config.py +30 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/example_client.py +107 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/game_server_pb2.py +501 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/game_server_pb2_grpc.py +113 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/master_pb2.py +184 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/master_pb2_grpc.py +62 -0
- cuju_engine-0.4.0/python/cuju/gfootball/eval_server/utils.py +52 -0
- cuju_engine-0.4.0/python/cuju/gfootball/examples/__init__.py +16 -0
- cuju_engine-0.4.0/python/cuju/gfootball/examples/models.py +66 -0
- cuju_engine-0.4.0/python/cuju/gfootball/examples/run_multiagent_rllib.py +140 -0
- cuju_engine-0.4.0/python/cuju/gfootball/examples/run_ppo2.py +123 -0
- cuju_engine-0.4.0/python/cuju/gfootball/play_game.py +73 -0
- cuju_engine-0.4.0/python/cuju/gfootball/replay.py +43 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_competition.py +59 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_easy_stochastic.py +57 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_hard_stochastic.py +57 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_kaggle.py +60 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_stochastic.py +57 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/1_vs_1_easy.py +39 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/5_vs_5.py +46 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/__init__.py +31 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_3_vs_1_with_keeper.py +42 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_corner.py +59 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_counterattack_easy.py +59 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_counterattack_hard.py +59 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_empty_goal.py +39 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_empty_goal_close.py +39 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_pass_and_shoot_with_keeper.py +41 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_run_pass_and_shoot_with_keeper.py +41 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_run_to_score.py +44 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_run_to_score_with_keeper.py +44 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_single_goal_versus_lazy.py +63 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/test_example_multiagent.py +42 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_deterministic.py +58 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_easy_deterministic.py +58 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_hard_deterministic.py +58 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_deterministic.py +58 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_stochastic.py +58 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_deterministic.py +47 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_stochastic.py +47 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/__init__.py +31 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/corner_test.py +38 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/goal_test.py +35 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/keeper_test.py +38 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/kickoff_for_goal_loosing_team_test.py +34 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/multiagent_wrapper.py +60 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/offside_test.py +39 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/penalty.py +34 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/second_half.py +33 -0
- cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/symmetric.py +53 -0
- cuju_engine-0.4.0/python/cuju/gfootball_engine/__init__.py +27 -0
- cuju_engine-0.4.0/python/cuju/gfootball_engine/_errors.py +16 -0
- cuju_engine-0.4.0/python/cuju/gfootball_engine/_gameplayfootball.py +1577 -0
- cuju_engine-0.4.0/python/cuju/gfootball_engine/_native.py +179 -0
- cuju_engine-0.4.0/python/cuju/gfootball_engine/_pickle_names.py +98 -0
- cuju_engine-0.4.0/python/cuju/gfootball_engine/_render_hooks.py +134 -0
- cuju_engine-0.4.0/python/cuju/scenarios.py +534 -0
- cuju_engine-0.4.0/src/cuju_cpu.cpp +31 -0
- cuju_engine-0.4.0/src/cuju_cuda.cu +12 -0
- cuju_engine-0.4.0/src/engine_api.h +451 -0
- cuju_engine-0.4.0/src/environment_api.h +495 -0
- cuju_engine-0.4.0/src/environment_state.cpp +101 -0
- cuju_engine-0.4.0/src/render/assets/ase.cpp +365 -0
- cuju_engine-0.4.0/src/render/assets/assets.h +123 -0
- cuju_engine-0.4.0/src/render/assets/geometry.cpp +182 -0
- cuju_engine-0.4.0/src/render/assets/object.cpp +201 -0
- cuju_engine-0.4.0/src/render/assets/surface.cpp +55 -0
- cuju_engine-0.4.0/src/render/assets/text.cpp +106 -0
- cuju_engine-0.4.0/src/render/assets/text.h +35 -0
- cuju_engine-0.4.0/src/render/fpenv.cpp +174 -0
- cuju_engine-0.4.0/src/render/fpenv.h +195 -0
- cuju_engine-0.4.0/src/render/frame.cpp +507 -0
- cuju_engine-0.4.0/src/render/frame.h +140 -0
- cuju_engine-0.4.0/src/render/gl/context.cpp +872 -0
- cuju_engine-0.4.0/src/render/gl/context.h +260 -0
- cuju_engine-0.4.0/src/render/gl/draw.cpp +542 -0
- cuju_engine-0.4.0/src/render/gl/fragment.cpp +408 -0
- cuju_engine-0.4.0/src/render/gl/fragment.h +102 -0
- cuju_engine-0.4.0/src/render/gl/mip_cache.cpp +92 -0
- cuju_engine-0.4.0/src/render/gl/mip_cache.h +46 -0
- cuju_engine-0.4.0/src/render/gl/pipeline.h +210 -0
- cuju_engine-0.4.0/src/render/gl/program.cpp +115 -0
- cuju_engine-0.4.0/src/render/gl/program.h +156 -0
- cuju_engine-0.4.0/src/render/gl/scene.cpp +838 -0
- cuju_engine-0.4.0/src/render/gl/setup.cpp +376 -0
- cuju_engine-0.4.0/src/render/lanes.h +451 -0
- cuju_engine-0.4.0/src/render/mipmap.cpp +272 -0
- cuju_engine-0.4.0/src/render/mipmap.h +24 -0
- cuju_engine-0.4.0/src/render/numerics.h +104 -0
- cuju_engine-0.4.0/src/render/overlay2d/atlas.cpp +260 -0
- cuju_engine-0.4.0/src/render/overlay2d/atlas.h +93 -0
- cuju_engine-0.4.0/src/render/overlay2d/overlay.cpp +287 -0
- cuju_engine-0.4.0/src/render/overlay2d/overlay.h +116 -0
- cuju_engine-0.4.0/src/render/overlay2d/rotozoom.cpp +119 -0
- cuju_engine-0.4.0/src/render/overlay2d/surface.cpp +92 -0
- cuju_engine-0.4.0/src/render/overlay2d/surface.h +52 -0
- cuju_engine-0.4.0/src/render/pitch/bmp.cpp +114 -0
- cuju_engine-0.4.0/src/render/pitch/bmp.h +29 -0
- cuju_engine-0.4.0/src/render/pitch/perlin.cpp +107 -0
- cuju_engine-0.4.0/src/render/pitch/perlin.h +48 -0
- cuju_engine-0.4.0/src/render/pitch/pitch.cpp +654 -0
- cuju_engine-0.4.0/src/render/pitch/pitch.h +56 -0
- cuju_engine-0.4.0/src/render/pixels.cpp +541 -0
- cuju_engine-0.4.0/src/render/pixels.h +69 -0
- cuju_engine-0.4.0/src/render/polynomials.h +110 -0
- cuju_engine-0.4.0/src/render/render_api.cpp +333 -0
- cuju_engine-0.4.0/src/render/render_api.h +75 -0
- cuju_engine-0.4.0/src/render/sampler.cpp +916 -0
- cuju_engine-0.4.0/src/render/sampler.h +50 -0
- cuju_engine-0.4.0/src/render/scene/gl_stream.cpp +530 -0
- cuju_engine-0.4.0/src/render/scene/gl_stream.h +216 -0
- cuju_engine-0.4.0/src/render/scene/grf_math.cpp +136 -0
- cuju_engine-0.4.0/src/render/scene/grf_math.h +262 -0
- cuju_engine-0.4.0/src/render/scene/gui.cpp +377 -0
- cuju_engine-0.4.0/src/render/scene/gui.h +154 -0
- cuju_engine-0.4.0/src/render/scene/match.cpp +605 -0
- cuju_engine-0.4.0/src/render/scene/match.h +180 -0
- cuju_engine-0.4.0/src/render/scene/netting.cpp +116 -0
- cuju_engine-0.4.0/src/render/scene/netting.h +42 -0
- cuju_engine-0.4.0/src/render/scene/random.h +53 -0
- cuju_engine-0.4.0/src/render/scene/renderer3d.cpp +865 -0
- cuju_engine-0.4.0/src/render/scene/renderer3d.h +237 -0
- cuju_engine-0.4.0/src/render/scene/scene.cpp +828 -0
- cuju_engine-0.4.0/src/render/scene/scene.h +247 -0
- cuju_engine-0.4.0/src/render/scene/skinning.cpp +313 -0
- cuju_engine-0.4.0/src/render/scene/skinning.h +71 -0
- cuju_engine-0.4.0/src/render/scene/vertex_colors.cpp +80 -0
- cuju_engine-0.4.0/src/render/scene/vertex_colors.h +20 -0
- cuju_engine-0.4.0/src/render/sha256.cpp +100 -0
- cuju_engine-0.4.0/src/render/sha256.h +37 -0
- cuju_engine-0.4.0/src/render/shaders/ambient.cpp +287 -0
- cuju_engine-0.4.0/src/render/shaders/ambient.h +43 -0
- cuju_engine-0.4.0/src/render/shaders/lighting.cpp +283 -0
- cuju_engine-0.4.0/src/render/shaders/lighting.h +44 -0
- cuju_engine-0.4.0/src/render/shaders/overlay.cpp +90 -0
- cuju_engine-0.4.0/src/render/shaders/overlay.h +30 -0
- cuju_engine-0.4.0/src/render/shaders/postprocess.cpp +218 -0
- cuju_engine-0.4.0/src/render/shaders/postprocess.h +37 -0
- cuju_engine-0.4.0/src/render/shaders/quad_vs.h +38 -0
- cuju_engine-0.4.0/src/render/shaders/simple.cpp +270 -0
- cuju_engine-0.4.0/src/render/shaders/simple.h +34 -0
- cuju_engine-0.4.0/src/render/shaders/zphase.cpp +66 -0
- cuju_engine-0.4.0/src/render/shaders/zphase.h +28 -0
- cuju_engine-0.4.0/src/render/srgb.h +45 -0
- cuju_engine-0.4.0/src/render/texture.h +81 -0
- cuju_engine-0.4.0/src/scenario_api.h +106 -0
- cuju_engine-0.4.0/src/state_api.h +100 -0
- cuju_engine-0.4.0/tests/batch/test_action_log.py +117 -0
- cuju_engine-0.4.0/tests/batch/test_async.py +148 -0
- cuju_engine-0.4.0/tests/batch/test_compile.py +100 -0
- cuju_engine-0.4.0/tests/batch/test_difficulty.py +34 -0
- cuju_engine-0.4.0/tests/batch/test_errors.py +93 -0
- cuju_engine-0.4.0/tests/batch/test_first_index.py +51 -0
- cuju_engine-0.4.0/tests/batch/test_fork.py +99 -0
- cuju_engine-0.4.0/tests/batch/test_masked_reset.py +116 -0
- cuju_engine-0.4.0/tests/batch/test_observers.py +414 -0
- cuju_engine-0.4.0/tests/batch/test_public_api.py +357 -0
- cuju_engine-0.4.0/tests/batch/test_referee_animations.py +57 -0
- cuju_engine-0.4.0/tests/batch/test_reset_seeds.py +85 -0
- cuju_engine-0.4.0/tests/batch/test_roles.py +83 -0
- cuju_engine-0.4.0/tests/batch/test_shapes.py +51 -0
- cuju_engine-0.4.0/tests/cli/test_check.py +219 -0
- cuju_engine-0.4.0/tests/cli/test_cli.py +623 -0
- cuju_engine-0.4.0/tests/cli/test_cli_conformance.py +410 -0
- cuju_engine-0.4.0/tests/cli/test_machine_config.py +181 -0
- cuju_engine-0.4.0/tests/conftest.py +105 -0
- cuju_engine-0.4.0/tests/devices/test_allocator.py +65 -0
- cuju_engine-0.4.0/tests/devices/test_backends.py +97 -0
- cuju_engine-0.4.0/tests/devices/test_device_checks.py +142 -0
- cuju_engine-0.4.0/tests/devices/test_digests.py +48 -0
- cuju_engine-0.4.0/tests/devices/test_long.py +59 -0
- cuju_engine-0.4.0/tests/devices/test_memory.py +124 -0
- cuju_engine-0.4.0/tests/devices/test_nvtx.py +37 -0
- cuju_engine-0.4.0/tests/devices/test_processors.py +76 -0
- cuju_engine-0.4.0/tests/grf/test_compare_with_grf.py +178 -0
- cuju_engine-0.4.0/tests/grf/test_dump_replay.py +120 -0
- cuju_engine-0.4.0/tests/grf/test_dumps.py +403 -0
- cuju_engine-0.4.0/tests/grf/test_engine_module.py +450 -0
- cuju_engine-0.4.0/tests/grf/test_env.py +346 -0
- cuju_engine-0.4.0/tests/grf/test_gfootball.py +141 -0
- cuju_engine-0.4.0/tests/grf/test_gfootball_alias.py +644 -0
- cuju_engine-0.4.0/tests/grf/test_gfootball_port.py +287 -0
- cuju_engine-0.4.0/tests/grf/test_grf_config.py +108 -0
- cuju_engine-0.4.0/tests/grf/test_grf_suite.py +126 -0
- cuju_engine-0.4.0/tests/grf/test_kaggle.py +178 -0
- cuju_engine-0.4.0/tests/grf/test_players.py +272 -0
- cuju_engine-0.4.0/tests/grf/test_python_players.py +225 -0
- cuju_engine-0.4.0/tests/grf/test_wrappers.py +260 -0
- cuju_engine-0.4.0/tests/grf/test_write_dump.py +104 -0
- cuju_engine-0.4.0/tests/packaging/test_bundle_cache.py +156 -0
- cuju_engine-0.4.0/tests/packaging/test_data_checksums.py +36 -0
- cuju_engine-0.4.0/tests/packaging/test_distribution.py +242 -0
- cuju_engine-0.4.0/tests/packaging/test_family_surface.py +159 -0
- cuju_engine-0.4.0/tests/packaging/test_import.py +147 -0
- cuju_engine-0.4.0/tests/packaging/test_plugins.py +270 -0
- cuju_engine-0.4.0/tests/packaging/test_version.py +55 -0
- cuju_engine-0.4.0/tests/render/test_engine_render_mode.py +211 -0
- cuju_engine-0.4.0/tests/render/test_render_frames.py +904 -0
- cuju_engine-0.4.0/tests/render/test_render_media.py +379 -0
- cuju_engine-0.4.0/tests/states/test_stacked_state.py +152 -0
- cuju_engine-0.4.0/tests/states/test_state.py +115 -0
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/bug.yml +0 -27
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/config.yml +0 -8
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/difference.yml +0 -58
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/grf-feature.yml +0 -20
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/install.yml +0 -30
- cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/performance.yml +0 -22
- cuju_engine-0.3.0/.github/pull_request_template.md +0 -6
- cuju_engine-0.3.0/.github/workflows/ci.yml +0 -124
- cuju_engine-0.3.0/.github/workflows/release.yml +0 -492
- cuju_engine-0.3.0/CHANGELOG.md +0 -437
- cuju_engine-0.3.0/CITATION.cff +0 -60
- cuju_engine-0.3.0/CODE_OF_CONDUCT.md +0 -119
- cuju_engine-0.3.0/CONTRIBUTING.md +0 -107
- cuju_engine-0.3.0/LICENSES/CC-BY-4.0.txt +0 -396
- cuju_engine-0.3.0/NOTICE +0 -56
- cuju_engine-0.3.0/PKG-INFO +0 -325
- cuju_engine-0.3.0/README.md +0 -270
- cuju_engine-0.3.0/SECURITY.md +0 -46
- cuju_engine-0.3.0/apptainer.def +0 -39
- cuju_engine-0.3.0/ci/check_links.py +0 -368
- cuju_engine-0.3.0/ci/check_wheel.py +0 -204
- cuju_engine-0.3.0/ci/compare_builds.py +0 -129
- cuju_engine-0.3.0/ci/cpu_only.py +0 -43
- cuju_engine-0.3.0/ci/data_checksums.py +0 -27
- cuju_engine-0.3.0/ci/install_cuda.sh +0 -33
- cuju_engine-0.3.0/ci/make_glyph_atlas.py +0 -651
- cuju_engine-0.3.0/ci/make_render_media.py +0 -285
- cuju_engine-0.3.0/ci/port_gfootball.py +0 -381
- cuju_engine-0.3.0/docs/api.md +0 -631
- cuju_engine-0.3.0/docs/backends.md +0 -409
- cuju_engine-0.3.0/docs/concepts.md +0 -145
- cuju_engine-0.3.0/docs/custom-scenarios.md +0 -163
- cuju_engine-0.3.0/docs/differences-from-grf.md +0 -299
- cuju_engine-0.3.0/docs/episodes-and-seeds.md +0 -254
- cuju_engine-0.3.0/docs/exactness.md +0 -285
- cuju_engine-0.3.0/docs/faq.md +0 -245
- cuju_engine-0.3.0/docs/index.md +0 -152
- cuju_engine-0.3.0/docs/installation.md +0 -550
- cuju_engine-0.3.0/docs/migrating-from-grf.md +0 -765
- cuju_engine-0.3.0/docs/observations.md +0 -382
- cuju_engine-0.3.0/docs/performance.md +0 -295
- cuju_engine-0.3.0/docs/recipes.md +0 -435
- cuju_engine-0.3.0/docs/rendering.md +0 -714
- cuju_engine-0.3.0/docs/rewards-and-actions.md +0 -201
- cuju_engine-0.3.0/docs/scenarios.md +0 -184
- cuju_engine-0.3.0/docs/states.md +0 -256
- cuju_engine-0.3.0/examples/README.md +0 -65
- cuju_engine-0.3.0/examples/benchmark.py +0 -110
- cuju_engine-0.3.0/examples/compare_with_grf.py +0 -390
- cuju_engine-0.3.0/examples/cuda_graph_step.py +0 -59
- cuju_engine-0.3.0/examples/cuju_quickstart.ipynb +0 -633
- cuju_engine-0.3.0/examples/dumps.py +0 -92
- cuju_engine-0.3.0/examples/evaluate.py +0 -116
- cuju_engine-0.3.0/examples/kaggle_agent.py +0 -73
- cuju_engine-0.3.0/examples/mixed_batch.py +0 -57
- cuju_engine-0.3.0/examples/multi_gpu.py +0 -91
- cuju_engine-0.3.0/examples/ppo.py +0 -285
- cuju_engine-0.3.0/examples/random_rollout.py +0 -57
- cuju_engine-0.3.0/examples/self_play.py +0 -131
- cuju_engine-0.3.0/examples/states.py +0 -138
- cuju_engine-0.3.0/include/cuju/ai_time.h +0 -409
- cuju_engine-0.3.0/include/cuju/animation/animation_data.h +0 -307
- cuju_engine-0.3.0/include/cuju/animation/animation_derived.h +0 -168
- cuju_engine-0.3.0/include/cuju/animation/apply.h +0 -367
- cuju_engine-0.3.0/include/cuju/animation/keyframes.h +0 -194
- cuju_engine-0.3.0/include/cuju/animation/skeleton.h +0 -238
- cuju_engine-0.3.0/include/cuju/assets/scenario_builder.h +0 -801
- cuju_engine-0.3.0/include/cuju/ball.h +0 -348
- cuju_engine-0.3.0/include/cuju/batch/agent_setup.h +0 -164
- cuju_engine-0.3.0/include/cuju/batch/batch_core.h +0 -866
- cuju_engine-0.3.0/include/cuju/batch/batch_environment.h +0 -778
- cuju_engine-0.3.0/include/cuju/batch/memory_estimate.h +0 -72
- cuju_engine-0.3.0/include/cuju/batch/render_states.h +0 -63
- cuju_engine-0.3.0/include/cuju/batch/stacked_state.h +0 -82
- cuju_engine-0.3.0/include/cuju/batch/state_difference.h +0 -128
- cuju_engine-0.3.0/include/cuju/batch/tables.h +0 -93
- cuju_engine-0.3.0/include/cuju/cpu/batch_environment.h +0 -467
- cuju_engine-0.3.0/include/cuju/cpu/job_thread.h +0 -121
- cuju_engine-0.3.0/include/cuju/cpu/placement.h +0 -214
- cuju_engine-0.3.0/include/cuju/cpu/processors.h +0 -152
- cuju_engine-0.3.0/include/cuju/engine/engine_info.h +0 -95
- cuju_engine-0.3.0/include/cuju/engine/game_engine.h +0 -782
- cuju_engine-0.3.0/include/cuju/file_path.h +0 -24
- cuju_engine-0.3.0/include/cuju/floating_point.h +0 -60
- cuju_engine-0.3.0/include/cuju/game_definitions.h +0 -36
- cuju_engine-0.3.0/include/cuju/gpu/batch_environment.cuh +0 -247
- cuju_engine-0.3.0/include/cuju/gpu/device_data.h +0 -138
- cuju_engine-0.3.0/include/cuju/host_device.h +0 -46
- cuju_engine-0.3.0/include/cuju/inline_vector.h +0 -95
- cuju_engine-0.3.0/include/cuju/math_utilities.h +0 -41
- cuju_engine-0.3.0/include/cuju/nvtx.h +0 -44
- cuju_engine-0.3.0/include/cuju/possession.h +0 -123
- cuju_engine-0.3.0/include/cuju/profiling.h +0 -70
- cuju_engine-0.3.0/include/cuju/quaternion.h +0 -286
- cuju_engine-0.3.0/include/cuju/real_to_string.h +0 -53
- cuju_engine-0.3.0/include/cuju/render/extract_render_state.h +0 -311
- cuju_engine-0.3.0/include/cuju/render/render_state.h +0 -168
- cuju_engine-0.3.0/include/cuju/rng.h +0 -115
- cuju_engine-0.3.0/include/cuju/simulation/access.h +0 -65
- cuju_engine-0.3.0/include/cuju/simulation/ai_controller.h +0 -2509
- cuju_engine-0.3.0/include/cuju/simulation/ai_functions.h +0 -190
- cuju_engine-0.3.0/include/cuju/simulation/ball_touch.h +0 -143
- cuju_engine-0.3.0/include/cuju/simulation/camera.h +0 -170
- cuju_engine-0.3.0/include/cuju/simulation/collisions.h +0 -619
- cuju_engine-0.3.0/include/cuju/simulation/containers.h +0 -26
- cuju_engine-0.3.0/include/cuju/simulation/enumerations.h +0 -64
- cuju_engine-0.3.0/include/cuju/simulation/environment.h +0 -619
- cuju_engine-0.3.0/include/cuju/simulation/geometry_offsets.h +0 -200
- cuju_engine-0.3.0/include/cuju/simulation/human_controller.h +0 -117
- cuju_engine-0.3.0/include/cuju/simulation/humanoid.h +0 -425
- cuju_engine-0.3.0/include/cuju/simulation/humanoid_process.h +0 -682
- cuju_engine-0.3.0/include/cuju/simulation/match_process.h +0 -392
- cuju_engine-0.3.0/include/cuju/simulation/observation_encoding.h +0 -182
- cuju_engine-0.3.0/include/cuju/simulation/officials.h +0 -400
- cuju_engine-0.3.0/include/cuju/simulation/player_controller.h +0 -248
- cuju_engine-0.3.0/include/cuju/simulation/player_possession.h +0 -126
- cuju_engine-0.3.0/include/cuju/simulation/referee.h +0 -356
- cuju_engine-0.3.0/include/cuju/simulation/render_mode.h +0 -196
- cuju_engine-0.3.0/include/cuju/simulation/reset.h +0 -731
- cuju_engine-0.3.0/include/cuju/simulation/select_animation.h +0 -2828
- cuju_engine-0.3.0/include/cuju/simulation/state_io.h +0 -94
- cuju_engine-0.3.0/include/cuju/simulation/static_data.h +0 -108
- cuju_engine-0.3.0/include/cuju/simulation/team_ai.h +0 -533
- cuju_engine-0.3.0/include/cuju/simulation/team_process.h +0 -320
- cuju_engine-0.3.0/include/cuju/simulation/team_select.h +0 -207
- cuju_engine-0.3.0/include/cuju/simulation/touch.h +0 -400
- cuju_engine-0.3.0/include/cuju/simulation/world.h +0 -264
- cuju_engine-0.3.0/include/cuju/span.h +0 -27
- cuju_engine-0.3.0/include/cuju/state/archive.h +0 -195
- cuju_engine-0.3.0/include/cuju/state/environment_state.h +0 -892
- cuju_engine-0.3.0/include/cuju/vector3.h +0 -232
- cuju_engine-0.3.0/include/cuju/warp.h +0 -252
- cuju_engine-0.3.0/include/cuju/work_area.h +0 -99
- cuju_engine-0.3.0/include/cuju/x86.h +0 -35
- cuju_engine-0.3.0/packages/cuju-gfootball/README.md +0 -78
- cuju_engine-0.3.0/packages/cuju-gfootball/pyproject.toml +0 -50
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__init__.py +0 -28
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__main__.py +0 -10
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_startup.py +0 -224
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_version.py +0 -5
- cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball.pth +0 -1
- cuju_engine-0.3.0/packaging/cuju-grf-media/.gitignore +0 -7
- cuju_engine-0.3.0/packaging/cuju-grf-media/NOTICE +0 -31
- cuju_engine-0.3.0/packaging/cuju-grf-media/README.md +0 -18
- cuju_engine-0.3.0/packaging/cuju-grf-media/pyproject.toml +0 -39
- cuju_engine-0.3.0/packaging/cuju-grf-media/sources.txt +0 -113
- cuju_engine-0.3.0/packaging/cuju-grf-media/src/cuju_grf_media/__init__.py +0 -9
- cuju_engine-0.3.0/pyproject.toml +0 -139
- cuju_engine-0.3.0/python/cuju/__init__.py +0 -217
- cuju_engine-0.3.0/python/cuju/__main__.py +0 -262
- cuju_engine-0.3.0/python/cuju/_batch/__init__.py +0 -4
- cuju_engine-0.3.0/python/cuju/_batch/allocator.py +0 -52
- cuju_engine-0.3.0/python/cuju/_batch/assets.py +0 -68
- cuju_engine-0.3.0/python/cuju/_batch/environment.py +0 -1890
- cuju_engine-0.3.0/python/cuju/_batch/frame_stack.py +0 -114
- cuju_engine-0.3.0/python/cuju/_batch/library.py +0 -190
- cuju_engine-0.3.0/python/cuju/_batch/log.py +0 -103
- cuju_engine-0.3.0/python/cuju/_batch/memory.py +0 -70
- cuju_engine-0.3.0/python/cuju/_batch/operators.py +0 -55
- cuju_engine-0.3.0/python/cuju/_batch/pinned.py +0 -39
- cuju_engine-0.3.0/python/cuju/_batch/pixels.py +0 -207
- cuju_engine-0.3.0/python/cuju/_batch/state.py +0 -77
- cuju_engine-0.3.0/python/cuju/_checksums.py +0 -60
- cuju_engine-0.3.0/python/cuju/_cli_contract.py +0 -244
- cuju_engine-0.3.0/python/cuju/_cli_parsers.py +0 -191
- cuju_engine-0.3.0/python/cuju/_completion.py +0 -277
- cuju_engine-0.3.0/python/cuju/_dump_to_txt.py +0 -66
- cuju_engine-0.3.0/python/cuju/_grf_config.py +0 -331
- cuju_engine-0.3.0/python/cuju/_library_path.py +0 -141
- cuju_engine-0.3.0/python/cuju/_media.py +0 -113
- cuju_engine-0.3.0/python/cuju/_pixels.py +0 -276
- cuju_engine-0.3.0/python/cuju/_plugins.py +0 -106
- cuju_engine-0.3.0/python/cuju/_python_players.py +0 -224
- cuju_engine-0.3.0/python/cuju/_replay_command.py +0 -109
- cuju_engine-0.3.0/python/cuju/_replay_player.py +0 -42
- cuju_engine-0.3.0/python/cuju/_replays.py +0 -414
- cuju_engine-0.3.0/python/cuju/_script_helpers.py +0 -109
- cuju_engine-0.3.0/python/cuju/_version.py +0 -6
- cuju_engine-0.3.0/python/cuju/action_log.py +0 -371
- cuju_engine-0.3.0/python/cuju/check.py +0 -596
- cuju_engine-0.3.0/python/cuju/dumps.py +0 -942
- cuju_engine-0.3.0/python/cuju/engine_status.py +0 -106
- cuju_engine-0.3.0/python/cuju/env.py +0 -1168
- cuju_engine-0.3.0/python/cuju/errors.py +0 -108
- cuju_engine-0.3.0/python/cuju/gfootball/__init__.py +0 -60
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/core.py +0 -361
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/envs/registration.py +0 -284
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/error.py +0 -230
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/logger.py +0 -56
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/__init__.py +0 -30
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/box.py +0 -171
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/dict.py +0 -162
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/discrete.py +0 -41
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_binary.py +0 -61
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_discrete.py +0 -77
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/space.py +0 -94
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/tuple.py +0 -96
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/utils.py +0 -228
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/__init__.py +0 -13
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/closer.py +0 -72
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/colorize.py +0 -36
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/ezpickle.py +0 -37
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/json_utils.py +0 -27
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/seeding.py +0 -101
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/version.py +0 -5
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/order_enforcing.py +0 -20
- cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/time_limit.py +0 -31
- cuju_engine-0.3.0/python/cuju/gfootball/dump_to_txt.py +0 -49
- cuju_engine-0.3.0/python/cuju/gfootball/dump_to_video.py +0 -33
- cuju_engine-0.3.0/python/cuju/gfootball/env/__init__.py +0 -271
- cuju_engine-0.3.0/python/cuju/gfootball/env/config.py +0 -163
- cuju_engine-0.3.0/python/cuju/gfootball/env/constants.py +0 -33
- cuju_engine-0.3.0/python/cuju/gfootball/env/controller_base.py +0 -114
- cuju_engine-0.3.0/python/cuju/gfootball/env/event_queue.py +0 -54
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set.py +0 -220
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set_test.py +0 -76
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_env.py +0 -225
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_core.py +0 -447
- cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_test.py +0 -692
- cuju_engine-0.3.0/python/cuju/gfootball/env/gym_test.py +0 -47
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_preprocessing.py +0 -94
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_processor.py +0 -526
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation.py +0 -163
- cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation_test.py +0 -84
- cuju_engine-0.3.0/python/cuju/gfootball/env/player_base.py +0 -46
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/__init__.py +0 -16
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/agent.py +0 -39
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/bot.py +0 -217
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/gamepad.py +0 -81
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/keyboard.py +0 -72
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/lazy.py +0 -31
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/ppo2_cnn.py +0 -119
- cuju_engine-0.3.0/python/cuju/gfootball/env/players/replay.py +0 -40
- cuju_engine-0.3.0/python/cuju/gfootball/env/remote_football_env.py +0 -189
- cuju_engine-0.3.0/python/cuju/gfootball/env/scenario_builder.py +0 -125
- cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers.py +0 -130
- cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers_test.py +0 -107
- cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers.py +0 -440
- cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers_test.py +0 -150
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/__init__.py +0 -17
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/config.py +0 -30
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/example_client.py +0 -107
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2.py +0 -501
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2_grpc.py +0 -113
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2.py +0 -184
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2_grpc.py +0 -62
- cuju_engine-0.3.0/python/cuju/gfootball/eval_server/utils.py +0 -52
- cuju_engine-0.3.0/python/cuju/gfootball/examples/__init__.py +0 -16
- cuju_engine-0.3.0/python/cuju/gfootball/examples/models.py +0 -66
- cuju_engine-0.3.0/python/cuju/gfootball/examples/run_multiagent_rllib.py +0 -140
- cuju_engine-0.3.0/python/cuju/gfootball/examples/run_ppo2.py +0 -123
- cuju_engine-0.3.0/python/cuju/gfootball/play_game.py +0 -73
- cuju_engine-0.3.0/python/cuju/gfootball/replay.py +0 -43
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_competition.py +0 -59
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_easy_stochastic.py +0 -57
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_hard_stochastic.py +0 -57
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_kaggle.py +0 -60
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_stochastic.py +0 -57
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/1_vs_1_easy.py +0 -39
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/5_vs_5.py +0 -46
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/__init__.py +0 -31
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_3_vs_1_with_keeper.py +0 -42
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_corner.py +0 -59
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_easy.py +0 -59
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_hard.py +0 -59
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal.py +0 -39
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal_close.py +0 -39
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_pass_and_shoot_with_keeper.py +0 -41
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_pass_and_shoot_with_keeper.py +0 -41
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score.py +0 -44
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score_with_keeper.py +0 -44
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_single_goal_versus_lazy.py +0 -63
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/test_example_multiagent.py +0 -42
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_deterministic.py +0 -58
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_easy_deterministic.py +0 -58
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_hard_deterministic.py +0 -58
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_deterministic.py +0 -58
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_stochastic.py +0 -58
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_deterministic.py +0 -47
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_stochastic.py +0 -47
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/__init__.py +0 -31
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/corner_test.py +0 -38
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/goal_test.py +0 -35
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/keeper_test.py +0 -38
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/kickoff_for_goal_loosing_team_test.py +0 -34
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/multiagent_wrapper.py +0 -60
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/offside_test.py +0 -39
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/penalty.py +0 -34
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/second_half.py +0 -33
- cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/symmetric.py +0 -53
- cuju_engine-0.3.0/python/cuju/gfootball_engine/__init__.py +0 -31
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_gameplayfootball.py +0 -1624
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_native.py +0 -193
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_pickle_names.py +0 -114
- cuju_engine-0.3.0/python/cuju/gfootball_engine/_render_hooks.py +0 -156
- cuju_engine-0.3.0/python/cuju/kaggle.py +0 -425
- cuju_engine-0.3.0/python/cuju/multi_device.py +0 -401
- cuju_engine-0.3.0/python/cuju/players.py +0 -260
- cuju_engine-0.3.0/python/cuju/raw.py +0 -93
- cuju_engine-0.3.0/python/cuju/scenarios.py +0 -661
- cuju_engine-0.3.0/python/cuju/state.py +0 -211
- cuju_engine-0.3.0/python/cuju/wrappers.py +0 -325
- cuju_engine-0.3.0/src/cuju_cpu.cpp +0 -39
- cuju_engine-0.3.0/src/cuju_cuda.cu +0 -14
- cuju_engine-0.3.0/src/engine_api.h +0 -487
- cuju_engine-0.3.0/src/environment_api.h +0 -623
- cuju_engine-0.3.0/src/environment_state.cpp +0 -103
- cuju_engine-0.3.0/src/render/assets/ase.cpp +0 -368
- cuju_engine-0.3.0/src/render/assets/assets.h +0 -147
- cuju_engine-0.3.0/src/render/assets/geometry.cpp +0 -185
- cuju_engine-0.3.0/src/render/assets/object.cpp +0 -202
- cuju_engine-0.3.0/src/render/assets/surface.cpp +0 -58
- cuju_engine-0.3.0/src/render/assets/text.cpp +0 -108
- cuju_engine-0.3.0/src/render/assets/text.h +0 -40
- cuju_engine-0.3.0/src/render/fpenv.cpp +0 -188
- cuju_engine-0.3.0/src/render/fpenv.h +0 -225
- cuju_engine-0.3.0/src/render/frame.cpp +0 -531
- cuju_engine-0.3.0/src/render/frame.h +0 -172
- cuju_engine-0.3.0/src/render/gl/context.cpp +0 -911
- cuju_engine-0.3.0/src/render/gl/context.h +0 -294
- cuju_engine-0.3.0/src/render/gl/draw.cpp +0 -566
- cuju_engine-0.3.0/src/render/gl/fragment.cpp +0 -424
- cuju_engine-0.3.0/src/render/gl/fragment.h +0 -131
- cuju_engine-0.3.0/src/render/gl/mip_cache.cpp +0 -95
- cuju_engine-0.3.0/src/render/gl/mip_cache.h +0 -49
- cuju_engine-0.3.0/src/render/gl/pipeline.h +0 -241
- cuju_engine-0.3.0/src/render/gl/program.cpp +0 -118
- cuju_engine-0.3.0/src/render/gl/program.h +0 -189
- cuju_engine-0.3.0/src/render/gl/scene.cpp +0 -868
- cuju_engine-0.3.0/src/render/gl/setup.cpp +0 -388
- cuju_engine-0.3.0/src/render/lanes.h +0 -480
- cuju_engine-0.3.0/src/render/mipmap.cpp +0 -286
- cuju_engine-0.3.0/src/render/mipmap.h +0 -31
- cuju_engine-0.3.0/src/render/numerics.h +0 -116
- cuju_engine-0.3.0/src/render/overlay2d/atlas.cpp +0 -262
- cuju_engine-0.3.0/src/render/overlay2d/atlas.h +0 -101
- cuju_engine-0.3.0/src/render/overlay2d/overlay.cpp +0 -294
- cuju_engine-0.3.0/src/render/overlay2d/overlay.h +0 -135
- cuju_engine-0.3.0/src/render/overlay2d/rotozoom.cpp +0 -123
- cuju_engine-0.3.0/src/render/overlay2d/surface.cpp +0 -96
- cuju_engine-0.3.0/src/render/overlay2d/surface.h +0 -63
- cuju_engine-0.3.0/src/render/pitch/bmp.cpp +0 -119
- cuju_engine-0.3.0/src/render/pitch/bmp.h +0 -32
- cuju_engine-0.3.0/src/render/pitch/perlin.cpp +0 -109
- cuju_engine-0.3.0/src/render/pitch/perlin.h +0 -49
- cuju_engine-0.3.0/src/render/pitch/pitch.cpp +0 -686
- cuju_engine-0.3.0/src/render/pitch/pitch.h +0 -72
- cuju_engine-0.3.0/src/render/pixels.cpp +0 -564
- cuju_engine-0.3.0/src/render/pixels.h +0 -78
- cuju_engine-0.3.0/src/render/polynomials.h +0 -118
- cuju_engine-0.3.0/src/render/render_api.cpp +0 -339
- cuju_engine-0.3.0/src/render/render_api.h +0 -92
- cuju_engine-0.3.0/src/render/sampler.cpp +0 -964
- cuju_engine-0.3.0/src/render/sampler.h +0 -69
- cuju_engine-0.3.0/src/render/scene/gl_stream.cpp +0 -532
- cuju_engine-0.3.0/src/render/scene/gl_stream.h +0 -239
- cuju_engine-0.3.0/src/render/scene/grf_math.cpp +0 -137
- cuju_engine-0.3.0/src/render/scene/grf_math.h +0 -270
- cuju_engine-0.3.0/src/render/scene/gui.cpp +0 -380
- cuju_engine-0.3.0/src/render/scene/gui.h +0 -162
- cuju_engine-0.3.0/src/render/scene/match.cpp +0 -625
- cuju_engine-0.3.0/src/render/scene/match.h +0 -203
- cuju_engine-0.3.0/src/render/scene/netting.cpp +0 -120
- cuju_engine-0.3.0/src/render/scene/netting.h +0 -56
- cuju_engine-0.3.0/src/render/scene/random.h +0 -56
- cuju_engine-0.3.0/src/render/scene/renderer3d.cpp +0 -868
- cuju_engine-0.3.0/src/render/scene/renderer3d.h +0 -242
- cuju_engine-0.3.0/src/render/scene/scene.cpp +0 -832
- cuju_engine-0.3.0/src/render/scene/scene.h +0 -269
- cuju_engine-0.3.0/src/render/scene/skinning.cpp +0 -322
- cuju_engine-0.3.0/src/render/scene/skinning.h +0 -90
- cuju_engine-0.3.0/src/render/scene/vertex_colors.cpp +0 -82
- cuju_engine-0.3.0/src/render/scene/vertex_colors.h +0 -23
- cuju_engine-0.3.0/src/render/sha256.cpp +0 -102
- cuju_engine-0.3.0/src/render/sha256.h +0 -39
- cuju_engine-0.3.0/src/render/shaders/ambient.cpp +0 -312
- cuju_engine-0.3.0/src/render/shaders/ambient.h +0 -45
- cuju_engine-0.3.0/src/render/shaders/lighting.cpp +0 -303
- cuju_engine-0.3.0/src/render/shaders/lighting.h +0 -46
- cuju_engine-0.3.0/src/render/shaders/overlay.cpp +0 -96
- cuju_engine-0.3.0/src/render/shaders/overlay.h +0 -32
- cuju_engine-0.3.0/src/render/shaders/postprocess.cpp +0 -237
- cuju_engine-0.3.0/src/render/shaders/postprocess.h +0 -39
- cuju_engine-0.3.0/src/render/shaders/quad_vs.h +0 -40
- cuju_engine-0.3.0/src/render/shaders/simple.cpp +0 -289
- cuju_engine-0.3.0/src/render/shaders/simple.h +0 -36
- cuju_engine-0.3.0/src/render/shaders/zphase.cpp +0 -72
- cuju_engine-0.3.0/src/render/shaders/zphase.h +0 -30
- cuju_engine-0.3.0/src/render/srgb.h +0 -53
- cuju_engine-0.3.0/src/render/texture.h +0 -85
- cuju_engine-0.3.0/src/scenario_api.h +0 -118
- cuju_engine-0.3.0/src/state_api.h +0 -123
- cuju_engine-0.3.0/tests/conftest.py +0 -98
- cuju_engine-0.3.0/tests/test_action_log.py +0 -122
- cuju_engine-0.3.0/tests/test_allocator.py +0 -67
- cuju_engine-0.3.0/tests/test_async.py +0 -157
- cuju_engine-0.3.0/tests/test_auto_device.py +0 -36
- cuju_engine-0.3.0/tests/test_backends.py +0 -19
- cuju_engine-0.3.0/tests/test_bundle_cache.py +0 -158
- cuju_engine-0.3.0/tests/test_check.py +0 -216
- cuju_engine-0.3.0/tests/test_cli.py +0 -563
- cuju_engine-0.3.0/tests/test_cli_conformance.py +0 -439
- cuju_engine-0.3.0/tests/test_compare_with_grf.py +0 -185
- cuju_engine-0.3.0/tests/test_compile.py +0 -104
- cuju_engine-0.3.0/tests/test_data_checksums.py +0 -38
- cuju_engine-0.3.0/tests/test_device_checks.py +0 -148
- cuju_engine-0.3.0/tests/test_devices.py +0 -53
- cuju_engine-0.3.0/tests/test_difficulty.py +0 -34
- cuju_engine-0.3.0/tests/test_digests.py +0 -53
- cuju_engine-0.3.0/tests/test_distribution.py +0 -252
- cuju_engine-0.3.0/tests/test_dump_replay.py +0 -105
- cuju_engine-0.3.0/tests/test_dumps.py +0 -301
- cuju_engine-0.3.0/tests/test_engine_module.py +0 -455
- cuju_engine-0.3.0/tests/test_engine_render_mode.py +0 -224
- cuju_engine-0.3.0/tests/test_env.py +0 -353
- cuju_engine-0.3.0/tests/test_errors.py +0 -91
- cuju_engine-0.3.0/tests/test_first_index.py +0 -54
- cuju_engine-0.3.0/tests/test_fork.py +0 -101
- cuju_engine-0.3.0/tests/test_gfootball.py +0 -142
- cuju_engine-0.3.0/tests/test_gfootball_alias.py +0 -670
- cuju_engine-0.3.0/tests/test_gfootball_port.py +0 -301
- cuju_engine-0.3.0/tests/test_gpu_errors.py +0 -21
- cuju_engine-0.3.0/tests/test_grf_config.py +0 -109
- cuju_engine-0.3.0/tests/test_grf_suite.py +0 -136
- cuju_engine-0.3.0/tests/test_import.py +0 -133
- cuju_engine-0.3.0/tests/test_kaggle.py +0 -186
- cuju_engine-0.3.0/tests/test_long.py +0 -69
- cuju_engine-0.3.0/tests/test_masked_reset.py +0 -119
- cuju_engine-0.3.0/tests/test_memory.py +0 -106
- cuju_engine-0.3.0/tests/test_memory_estimate.py +0 -333
- cuju_engine-0.3.0/tests/test_multi_device.py +0 -136
- cuju_engine-0.3.0/tests/test_nvtx.py +0 -40
- cuju_engine-0.3.0/tests/test_observers.py +0 -446
- cuju_engine-0.3.0/tests/test_players.py +0 -274
- cuju_engine-0.3.0/tests/test_plugins.py +0 -297
- cuju_engine-0.3.0/tests/test_processors.py +0 -75
- cuju_engine-0.3.0/tests/test_python_players.py +0 -227
- cuju_engine-0.3.0/tests/test_referee_animations.py +0 -57
- cuju_engine-0.3.0/tests/test_render_frames.py +0 -954
- cuju_engine-0.3.0/tests/test_render_media.py +0 -389
- cuju_engine-0.3.0/tests/test_reset_seeds.py +0 -87
- cuju_engine-0.3.0/tests/test_roles.py +0 -103
- cuju_engine-0.3.0/tests/test_shapes.py +0 -55
- cuju_engine-0.3.0/tests/test_stacked_state.py +0 -155
- cuju_engine-0.3.0/tests/test_state.py +0 -76
- cuju_engine-0.3.0/tests/test_state_errors.py +0 -52
- cuju_engine-0.3.0/tests/test_version.py +0 -56
- cuju_engine-0.3.0/tests/test_wrappers.py +0 -262
- cuju_engine-0.3.0/tests/test_write_dump.py +0 -105
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.clang-format +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.dockerignore +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.gitattributes +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.gitignore +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/CMakeLists.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/Dockerfile +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSE +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/BSD-3-Clause.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/BSL-1.0.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/LGPL-2.1-or-later.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/MIT-Mesa.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/MIT-gym.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/MIT.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/OFL-1.1.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/SunPro.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/Unlicense.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/Zlib.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/acos_double.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/asinf.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/common.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/inverse_trigonometric_float.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/pow.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/powf.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/sin_double.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/sincos_double.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/sincosf.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/tan_double.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/tanf.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/trigonometric_double.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/trigonometric_tables_double.h +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/packages/cuju-gfootball/LICENSE +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/SHA256SUMS +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/animations.bin +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_competition_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_easy_stochastic_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_hard_stochastic_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_kaggle_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_stochastic_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/1_vs_1_easy_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/5_vs_5_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_3_vs_1_with_keeper_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_corner_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_counterattack_easy_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_counterattack_hard_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_empty_goal_close_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_empty_goal_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_run_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_run_to_score_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_run_to_score_with_keeper_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_single_goal_versus_lazy_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/test_example_multiagent_l0_r0.cjb +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/digests.json +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/render_digests.json.z +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_competition.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_easy_stochastic.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_hard_stochastic.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_kaggle.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_stochastic.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/1_vs_1_easy.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/5_vs_5.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_3_vs_1_with_keeper.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_corner.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_counterattack_easy.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_counterattack_hard.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_empty_goal.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_empty_goal_close.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_pass_and_shoot_with_keeper.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_run_pass_and_shoot_with_keeper.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_run_to_score.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_run_to_score_with_keeper.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_single_goal_versus_lazy.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/test_example_multiagent.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/GRF_SOURCES +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_cv2.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/__init__.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/GYM_SOURCES +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/__init__.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/envs/__init__.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/wrappers/__init__.py +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/eval_server/proto/game_server.proto +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/eval_server/proto/master.proto +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/src/render/CMakeLists.txt +0 -0
- {cuju_engine-0.3.0 → cuju_engine-0.4.0}/tests/data/render_5_vs_5_seed_0.bin.z +0 -0
- {cuju_engine-0.3.0/tests → cuju_engine-0.4.0/tests/grf}/test_port_vs_env.py +0 -0
|
@@ -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
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
lint:
|
|
15
|
+
uses: cuju-football/.github/.github/workflows/ruff.yml@main
|
|
16
|
+
with:
|
|
17
|
+
paths: python tests examples packages ci
|
|
18
|
+
|
|
19
|
+
cpu:
|
|
20
|
+
needs: grf-media
|
|
21
|
+
runs-on: ubuntu-24.04
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v7
|
|
24
|
+
- uses: actions/setup-python@v7
|
|
25
|
+
with:
|
|
26
|
+
python-version: '3.12'
|
|
27
|
+
- name: Install PyTorch for the CPU
|
|
28
|
+
run: pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
29
|
+
- name: Build and install the CPU backend
|
|
30
|
+
# hatchling builds the wheel of cuju-gfootball in the tests.
|
|
31
|
+
run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' hatchling opencv-python-headless
|
|
32
|
+
- uses: actions/download-artifact@v8
|
|
33
|
+
with:
|
|
34
|
+
name: grf-media
|
|
35
|
+
path: grf-media
|
|
36
|
+
- name: Install the pinned GRF media
|
|
37
|
+
run: pip install --no-index --find-links grf-media cuju-grf-media
|
|
38
|
+
- name: Lint the C++ and CUDA
|
|
39
|
+
run: |
|
|
40
|
+
find include src -name '*.h' -o -name '*.cuh' -o -name '*.cpp' -o -name '*.cu' \
|
|
41
|
+
| xargs clang-format-18 --dry-run -Werror
|
|
42
|
+
- name: Links of the README and the docs
|
|
43
|
+
run: python ci/checks/check_links.py --offline
|
|
44
|
+
- name: Self-check
|
|
45
|
+
run: pytest tests
|
|
46
|
+
|
|
47
|
+
cpu-arm:
|
|
48
|
+
runs-on: ubuntu-24.04-arm
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v7
|
|
51
|
+
- uses: actions/setup-python@v7
|
|
52
|
+
with:
|
|
53
|
+
python-version: '3.12'
|
|
54
|
+
- name: Install PyTorch for the CPU
|
|
55
|
+
run: pip install torch --index-url https://download.pytorch.org/whl/cpu
|
|
56
|
+
- name: Build and install the CPU backend
|
|
57
|
+
run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' opencv-python-headless
|
|
58
|
+
- name: Self-check
|
|
59
|
+
run: pytest tests
|
|
60
|
+
|
|
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]" 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/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/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/checks/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
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
# Copyright 2026 The cuju Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
name: release
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags: ['v*']
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
inputs:
|
|
11
|
+
publish:
|
|
12
|
+
description: Publish the sdist and the wheels to PyPI
|
|
13
|
+
type: boolean
|
|
14
|
+
default: false
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
sdist:
|
|
21
|
+
runs-on: ubuntu-24.04
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v7
|
|
24
|
+
- uses: actions/setup-python@v7
|
|
25
|
+
with:
|
|
26
|
+
python-version: '3.12'
|
|
27
|
+
- name: Date every file of the build by the commit
|
|
28
|
+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
|
29
|
+
- name: Build the sdist twice and compare the bytes
|
|
30
|
+
run: |
|
|
31
|
+
pip install build
|
|
32
|
+
python -m build --sdist --outdir dist
|
|
33
|
+
python -m build --sdist --outdir "$RUNNER_TEMP/sdist-again"
|
|
34
|
+
python ci/checks/compare_builds.py dist "$RUNNER_TEMP/sdist-again"
|
|
35
|
+
- uses: actions/upload-artifact@v7
|
|
36
|
+
with:
|
|
37
|
+
name: sdist
|
|
38
|
+
path: dist/*.tar.gz
|
|
39
|
+
|
|
40
|
+
gfootball:
|
|
41
|
+
runs-on: ubuntu-24.04
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v7
|
|
44
|
+
- uses: actions/setup-python@v7
|
|
45
|
+
with:
|
|
46
|
+
python-version: '3.12'
|
|
47
|
+
- name: Date every file of the build by the commit
|
|
48
|
+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
|
49
|
+
- name: Build the sdist and the wheel of cuju-gfootball twice and compare the bytes
|
|
50
|
+
run: |
|
|
51
|
+
pip install build
|
|
52
|
+
python -m build packages/cuju-gfootball --outdir dist
|
|
53
|
+
python -m build packages/cuju-gfootball --outdir "$RUNNER_TEMP/gfootball-again"
|
|
54
|
+
python ci/checks/compare_builds.py dist "$RUNNER_TEMP/gfootball-again"
|
|
55
|
+
- name: Check the contents of the wheel
|
|
56
|
+
run: |
|
|
57
|
+
python ci/checks/check_wheel.py --alias dist/*.whl
|
|
58
|
+
python -c "import sys, zipfile; [print(n) for n in zipfile.ZipFile(sys.argv[1]).namelist()]" dist/*.whl
|
|
59
|
+
- uses: actions/upload-artifact@v7
|
|
60
|
+
with:
|
|
61
|
+
name: cuju-gfootball
|
|
62
|
+
path: dist/*
|
|
63
|
+
|
|
64
|
+
wheel:
|
|
65
|
+
name: wheel ${{ matrix.name }}
|
|
66
|
+
runs-on: ${{ matrix.runner }}
|
|
67
|
+
strategy:
|
|
68
|
+
fail-fast: false
|
|
69
|
+
matrix:
|
|
70
|
+
include:
|
|
71
|
+
# `-real` keeps PTX out, so no driver compiles it for a GPU no check covered.
|
|
72
|
+
- name: linux-x86-64
|
|
73
|
+
runner: ubuntu-24.04
|
|
74
|
+
cibuildwheel: cp312-manylinux_x86_64
|
|
75
|
+
before_all: bash ci/install_cuda.sh
|
|
76
|
+
environment: >-
|
|
77
|
+
PATH=/usr/local/cuda/bin:$PATH
|
|
78
|
+
CXX=clang++ CUDAHOSTCXX=g++
|
|
79
|
+
CMAKE_ARGS=-DCUJU_CUDA=ON
|
|
80
|
+
CMAKE_CUDA_ARCHITECTURES="75-real;80-real;86-real;89-real"
|
|
81
|
+
- name: linux-aarch64
|
|
82
|
+
runner: ubuntu-24.04-arm
|
|
83
|
+
cibuildwheel: cp312-manylinux_aarch64
|
|
84
|
+
before_all: dnf install -y clang
|
|
85
|
+
environment: CXX=clang++ CMAKE_ARGS=-DCUJU_CUDA=OFF
|
|
86
|
+
cpu_only: true
|
|
87
|
+
# CUDA 12.9 takes Visual Studio 2017 to 2022, which windows-2025 no longer has.
|
|
88
|
+
- name: windows-x86-64
|
|
89
|
+
runner: windows-2022
|
|
90
|
+
cmake_args: -DCUJU_CUDA=ON
|
|
91
|
+
cuda_architectures: 75-real;80-real;86-real;89-real
|
|
92
|
+
cuda: true
|
|
93
|
+
- name: macos-arm64
|
|
94
|
+
runner: macos-15
|
|
95
|
+
cmake_args: -DCUJU_CUDA=OFF
|
|
96
|
+
deployment_target: '11.0'
|
|
97
|
+
cpu_only: true
|
|
98
|
+
# macos-13 is retired, and macos-15-intel is the x86-64 image left.
|
|
99
|
+
- name: macos-x86-64
|
|
100
|
+
runner: macos-15-intel
|
|
101
|
+
cmake_args: -DCUJU_CUDA=OFF
|
|
102
|
+
deployment_target: '10.15'
|
|
103
|
+
cpu_only: true
|
|
104
|
+
defaults:
|
|
105
|
+
run:
|
|
106
|
+
shell: bash
|
|
107
|
+
env:
|
|
108
|
+
PIP_DISABLE_PIP_VERSION_CHECK: '1'
|
|
109
|
+
steps:
|
|
110
|
+
- uses: actions/checkout@v7
|
|
111
|
+
- uses: actions/setup-python@v7
|
|
112
|
+
with:
|
|
113
|
+
python-version: '3.12'
|
|
114
|
+
- name: Date every file of the build by the commit
|
|
115
|
+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
|
116
|
+
- name: Install the CUDA toolkit
|
|
117
|
+
if: matrix.cuda
|
|
118
|
+
uses: Jimver/cuda-toolkit@v0.2.36
|
|
119
|
+
with:
|
|
120
|
+
cuda: '12.9.1'
|
|
121
|
+
method: network
|
|
122
|
+
sub-packages: '["nvcc", "cudart", "visual_studio_integration"]'
|
|
123
|
+
- name: Use MSVC from the command line
|
|
124
|
+
if: runner.os == 'Windows'
|
|
125
|
+
shell: pwsh
|
|
126
|
+
run: |
|
|
127
|
+
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
|
|
128
|
+
$vs = & $vswhere -latest -products * -property installationPath `
|
|
129
|
+
-requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
|
|
130
|
+
$before = @{}
|
|
131
|
+
Get-ChildItem env: | ForEach-Object { $before[$_.Name] = $_.Value }
|
|
132
|
+
cmd /c "`"$vs\VC\Auxiliary\Build\vcvars64.bat`" >nul && set" | ForEach-Object {
|
|
133
|
+
if ($_ -match '^([^=]+)=(.*)$' -and $before[$matches[1]] -ne $matches[2]) {
|
|
134
|
+
"$($matches[1])=$($matches[2])" >> $env:GITHUB_ENV
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
- name: Describe the runner
|
|
138
|
+
run: |
|
|
139
|
+
python -c "import platform, sys; print(platform.platform(), platform.machine(), sys.version)"
|
|
140
|
+
cmake --version | head -n 1
|
|
141
|
+
if [ "$RUNNER_OS" = Windows ]; then cl 2>&1 | head -n 1; nvcc --version | tail -n 2;
|
|
142
|
+
elif [ "$RUNNER_OS" = macOS ]; then clang++ --version | head -n 1; sysctl -n machdep.cpu.brand_string;
|
|
143
|
+
fi
|
|
144
|
+
- name: Build the wheel twice in the manylinux image
|
|
145
|
+
if: runner.os == 'Linux'
|
|
146
|
+
env:
|
|
147
|
+
CIBW_BUILD: ${{ matrix.cibuildwheel }}
|
|
148
|
+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
|
|
149
|
+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
|
|
150
|
+
CIBW_BEFORE_ALL: ${{ matrix.before_all }}
|
|
151
|
+
CIBW_ENVIRONMENT: ${{ matrix.environment }}
|
|
152
|
+
CIBW_ENVIRONMENT_PASS_LINUX: SOURCE_DATE_EPOCH
|
|
153
|
+
CIBW_CONFIG_SETTINGS: build.verbose=true
|
|
154
|
+
CIBW_BUILD_VERBOSITY: '1'
|
|
155
|
+
run: |
|
|
156
|
+
python -m pip install cibuildwheel==4.3.4
|
|
157
|
+
python -m cibuildwheel --output-dir wheelhouse 2>&1 | tee build.log
|
|
158
|
+
python -m cibuildwheel --output-dir wheelhouse-again 2>&1 | tee build-again.log
|
|
159
|
+
- name: Build the wheel twice on the runner
|
|
160
|
+
if: runner.os != 'Linux'
|
|
161
|
+
env:
|
|
162
|
+
CMAKE_ARGS: ${{ matrix.cmake_args }}
|
|
163
|
+
CMAKE_CUDA_ARCHITECTURES: ${{ matrix.cuda_architectures }}
|
|
164
|
+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target }}
|
|
165
|
+
run: |
|
|
166
|
+
if [ -z "$CMAKE_CUDA_ARCHITECTURES" ]; then unset CMAKE_CUDA_ARCHITECTURES; fi
|
|
167
|
+
if [ -z "$MACOSX_DEPLOYMENT_TARGET" ]; then unset MACOSX_DEPLOYMENT_TARGET; fi
|
|
168
|
+
if [ "$RUNNER_OS" = Windows ]; then export CMAKE_GENERATOR=Ninja; fi
|
|
169
|
+
python -m pip install --upgrade pip ninja
|
|
170
|
+
python -m pip wheel . --no-deps -v -w wheelhouse -C build.verbose=true 2>&1 | tee build.log
|
|
171
|
+
rm -rf build
|
|
172
|
+
python -m pip wheel . --no-deps -v -w wheelhouse-again -C build.verbose=true 2>&1 \
|
|
173
|
+
| tee build-again.log
|
|
174
|
+
- name: Compare the two builds
|
|
175
|
+
run: python ci/checks/compare_builds.py wheelhouse wheelhouse-again
|
|
176
|
+
- name: Check the compile flags
|
|
177
|
+
run: |
|
|
178
|
+
grep -ohE "fp:precise|ffp-contract=off" build.log | sort | uniq -c
|
|
179
|
+
if grep -E "fp:fast|fp:contract|ffast-math|ffp-contract=(fast|on)" build.log; then
|
|
180
|
+
echo "a contracting or fast-math flag reached the build"; exit 1
|
|
181
|
+
fi
|
|
182
|
+
- name: Check the licenses and the libraries of the wheel
|
|
183
|
+
run: |
|
|
184
|
+
python ci/checks/check_wheel.py ${{ matrix.cpu_only && '--cpu-only' || '' }} wheelhouse/*.whl
|
|
185
|
+
ls -l wheelhouse
|
|
186
|
+
python -c "import sys, zipfile; [print(n) for n in zipfile.ZipFile(sys.argv[1]).namelist() if not n.startswith('cuju/gfootball')]" wheelhouse/*.whl
|
|
187
|
+
- uses: actions/upload-artifact@v7
|
|
188
|
+
with:
|
|
189
|
+
name: wheel-${{ matrix.name }}
|
|
190
|
+
path: wheelhouse/*.whl
|
|
191
|
+
- uses: actions/upload-artifact@v7
|
|
192
|
+
if: always()
|
|
193
|
+
with:
|
|
194
|
+
name: build-log-${{ matrix.name }}
|
|
195
|
+
path: build*.log
|
|
196
|
+
|
|
197
|
+
test:
|
|
198
|
+
name: test ${{ matrix.name }}
|
|
199
|
+
needs: wheel
|
|
200
|
+
if: ${{ !cancelled() }}
|
|
201
|
+
runs-on: ${{ matrix.runner }}
|
|
202
|
+
strategy:
|
|
203
|
+
fail-fast: false
|
|
204
|
+
matrix:
|
|
205
|
+
include:
|
|
206
|
+
- name: linux-x86-64
|
|
207
|
+
runner: ubuntu-24.04
|
|
208
|
+
torch: torch --index-url https://download.pytorch.org/whl/cpu
|
|
209
|
+
- name: linux-aarch64
|
|
210
|
+
runner: ubuntu-24.04-arm
|
|
211
|
+
torch: torch --index-url https://download.pytorch.org/whl/cpu
|
|
212
|
+
- name: windows-x86-64
|
|
213
|
+
runner: windows-2025
|
|
214
|
+
torch: torch --index-url https://download.pytorch.org/whl/cpu
|
|
215
|
+
- name: macos-arm64
|
|
216
|
+
runner: macos-15
|
|
217
|
+
torch: torch
|
|
218
|
+
# PyTorch's last x86-64 macOS wheel is 2.2.2, built against numpy 1.
|
|
219
|
+
- name: macos-x86-64
|
|
220
|
+
runner: macos-15-intel
|
|
221
|
+
torch: torch==2.2.2 'numpy<2'
|
|
222
|
+
defaults:
|
|
223
|
+
run:
|
|
224
|
+
shell: bash
|
|
225
|
+
env:
|
|
226
|
+
PIP_DISABLE_PIP_VERSION_CHECK: '1'
|
|
227
|
+
steps:
|
|
228
|
+
- uses: actions/checkout@v7
|
|
229
|
+
- uses: actions/setup-python@v7
|
|
230
|
+
with:
|
|
231
|
+
python-version: '3.12'
|
|
232
|
+
- uses: actions/download-artifact@v8
|
|
233
|
+
with:
|
|
234
|
+
name: wheel-${{ matrix.name }}
|
|
235
|
+
path: wheelhouse
|
|
236
|
+
- name: Make a new environment
|
|
237
|
+
run: |
|
|
238
|
+
python -m venv "$RUNNER_TEMP/venv"
|
|
239
|
+
if [ "$RUNNER_OS" = Windows ]; then
|
|
240
|
+
echo "VENV_PYTHON=$RUNNER_TEMP/venv/Scripts/python.exe" >> "$GITHUB_ENV"
|
|
241
|
+
else
|
|
242
|
+
echo "VENV_PYTHON=$RUNNER_TEMP/venv/bin/python" >> "$GITHUB_ENV"
|
|
243
|
+
fi
|
|
244
|
+
- name: Install PyTorch for the CPU
|
|
245
|
+
run: '"$VENV_PYTHON" -m pip install ${{ matrix.torch }}'
|
|
246
|
+
- name: Install the wheel
|
|
247
|
+
run: |
|
|
248
|
+
wheel=$(ls wheelhouse/cuju_engine-*.whl)
|
|
249
|
+
echo "WHEEL=$wheel" >> "$GITHUB_ENV"
|
|
250
|
+
"$VENV_PYTHON" -m pip install "$wheel"
|
|
251
|
+
"$VENV_PYTHON" -m pip list
|
|
252
|
+
- name: cuju.check on the CPU
|
|
253
|
+
working-directory: ${{ runner.temp }}
|
|
254
|
+
run: '"$VENV_PYTHON" -I -m cuju.check --device cpu 2>&1 | tee check.log'
|
|
255
|
+
- name: The public tests
|
|
256
|
+
working-directory: ${{ runner.temp }}
|
|
257
|
+
run: |
|
|
258
|
+
"$VENV_PYTHON" -m pip install "$GITHUB_WORKSPACE/$WHEEL[test,spaces]"
|
|
259
|
+
"$VENV_PYTHON" -m pytest -ra -p no:cacheprovider "$GITHUB_WORKSPACE/tests"
|
|
260
|
+
- uses: actions/upload-artifact@v7
|
|
261
|
+
if: always()
|
|
262
|
+
with:
|
|
263
|
+
name: check-${{ matrix.name }}
|
|
264
|
+
path: ${{ runner.temp }}/check.log
|
|
265
|
+
if-no-files-found: ignore
|
|
266
|
+
|
|
267
|
+
# syft reads metadata, and the code that the libraries compile in or link statically has none.
|
|
268
|
+
sbom:
|
|
269
|
+
needs: [sdist, wheel, gfootball]
|
|
270
|
+
uses: cuju-football/.github/.github/workflows/sbom.yml@main
|
|
271
|
+
with:
|
|
272
|
+
artifacts: '{sdist,wheel-*,cuju-gfootball}'
|
|
273
|
+
|
|
274
|
+
grf-media:
|
|
275
|
+
runs-on: ubuntu-24.04
|
|
276
|
+
env:
|
|
277
|
+
PIP_DISABLE_PIP_VERSION_CHECK: '1'
|
|
278
|
+
steps:
|
|
279
|
+
- uses: actions/checkout@v7
|
|
280
|
+
- uses: actions/checkout@v7
|
|
281
|
+
with:
|
|
282
|
+
repository: google-research/football
|
|
283
|
+
ref: 3d9e754720a95621bba6475c4d3b0d56fe919014
|
|
284
|
+
path: grf
|
|
285
|
+
persist-credentials: false
|
|
286
|
+
- uses: actions/setup-python@v7
|
|
287
|
+
with:
|
|
288
|
+
python-version: '3.12'
|
|
289
|
+
- name: Date every file of the build by the commit
|
|
290
|
+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
|
|
291
|
+
# The converter refuses an atlas from other library versions than Ubuntu 24.04 has.
|
|
292
|
+
- name: Render the glyph atlas with SDL_ttf
|
|
293
|
+
run: |
|
|
294
|
+
sudo apt-get update
|
|
295
|
+
sudo apt-get install -y libsdl2-2.0-0 libsdl2-ttf-2.0-0 libfreetype6 libharfbuzz0b
|
|
296
|
+
python ci/make/make_glyph_atlas.py grf/third_party/fonts/AlegreyaSansSC-ExtraBold.ttf generated
|
|
297
|
+
- name: Copy GRF's media into the package
|
|
298
|
+
run: python ci/make/make_render_media.py grf --generated generated
|
|
299
|
+
- name: Build the wheel twice and compare the bytes
|
|
300
|
+
run: |
|
|
301
|
+
pip install build
|
|
302
|
+
python -m build --wheel --outdir grf-media packaging/cuju-grf-media
|
|
303
|
+
python -m build --wheel --outdir "$RUNNER_TEMP/grf-media-again" packaging/cuju-grf-media
|
|
304
|
+
python ci/checks/compare_builds.py grf-media "$RUNNER_TEMP/grf-media-again"
|
|
305
|
+
- name: Check the files and the licenses of the wheel
|
|
306
|
+
run: |
|
|
307
|
+
python ci/checks/check_wheel.py --grf-media grf-media/*.whl
|
|
308
|
+
ls -l grf-media
|
|
309
|
+
- name: Install the wheel and check the installed media
|
|
310
|
+
run: |
|
|
311
|
+
python -m venv "$RUNNER_TEMP/venv"
|
|
312
|
+
"$RUNNER_TEMP/venv/bin/python" -m pip install grf-media/*.whl
|
|
313
|
+
cd "$RUNNER_TEMP"
|
|
314
|
+
export PYTHONPATH="$GITHUB_WORKSPACE/python"
|
|
315
|
+
"$RUNNER_TEMP/venv/bin/python" -c \
|
|
316
|
+
"from cuju import _media; p = _media.problems(); print(_media.root()); assert not p, p"
|
|
317
|
+
- uses: actions/upload-artifact@v7
|
|
318
|
+
with:
|
|
319
|
+
name: grf-media
|
|
320
|
+
path: grf-media/*.whl
|
|
321
|
+
|
|
322
|
+
publish:
|
|
323
|
+
needs: [sdist, wheel, gfootball, test, sbom]
|
|
324
|
+
if: >-
|
|
325
|
+
github.event_name == 'workflow_dispatch' && inputs.publish
|
|
326
|
+
&& startsWith(github.ref, 'refs/tags/v')
|
|
327
|
+
runs-on: ubuntu-24.04
|
|
328
|
+
# The environment requires a maintainer's approval before anything is published.
|
|
329
|
+
environment: pypi
|
|
330
|
+
permissions:
|
|
331
|
+
contents: read
|
|
332
|
+
id-token: write
|
|
333
|
+
steps:
|
|
334
|
+
- uses: actions/checkout@v7
|
|
335
|
+
- name: Check that the tag names the version of the package
|
|
336
|
+
run: |
|
|
337
|
+
version=$(python3 -c "import runpy; print(runpy.run_path('python/cuju/_version.py')['__version__'])")
|
|
338
|
+
if [ "$GITHUB_REF_NAME" != "v$version" ]; then
|
|
339
|
+
echo "the tag $GITHUB_REF_NAME names another version than __version__ $version"
|
|
340
|
+
exit 1
|
|
341
|
+
fi
|
|
342
|
+
- uses: actions/download-artifact@v8
|
|
343
|
+
with:
|
|
344
|
+
path: dist
|
|
345
|
+
pattern: '{sdist,wheel-*}'
|
|
346
|
+
merge-multiple: true
|
|
347
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
348
|
+
|
|
349
|
+
# Uploads only when PyPI lacks the version, and any answer but found or missing stops the job.
|
|
350
|
+
publish-gfootball:
|
|
351
|
+
needs: [gfootball, publish]
|
|
352
|
+
if: >-
|
|
353
|
+
github.event_name == 'workflow_dispatch' && inputs.publish
|
|
354
|
+
&& startsWith(github.ref, 'refs/tags/v')
|
|
355
|
+
runs-on: ubuntu-24.04
|
|
356
|
+
environment: pypi-gfootball
|
|
357
|
+
permissions:
|
|
358
|
+
contents: read
|
|
359
|
+
id-token: write
|
|
360
|
+
steps:
|
|
361
|
+
- uses: actions/checkout@v7
|
|
362
|
+
with:
|
|
363
|
+
persist-credentials: false
|
|
364
|
+
- name: Check that the tag names the version of the package
|
|
365
|
+
run: |
|
|
366
|
+
version=$(python3 -c "import runpy; print(runpy.run_path('python/cuju/_version.py')['__version__'])")
|
|
367
|
+
if [ "$GITHUB_REF_NAME" != "v$version" ]; then
|
|
368
|
+
echo "the tag $GITHUB_REF_NAME names another version than __version__ $version"
|
|
369
|
+
exit 1
|
|
370
|
+
fi
|
|
371
|
+
- uses: actions/download-artifact@v8
|
|
372
|
+
with:
|
|
373
|
+
name: cuju-gfootball
|
|
374
|
+
path: dist
|
|
375
|
+
- name: Upload cuju-gfootball only where PyPI lacks its version
|
|
376
|
+
id: pypi
|
|
377
|
+
run: |
|
|
378
|
+
version=$(python3 -c "import runpy; print(runpy.run_path('packages/cuju-gfootball/src/cuju/gfootball_alias/_version.py')['__version__'])")
|
|
379
|
+
status=$(curl -s -o /dev/null -w '%{http_code}' "https://pypi.org/pypi/cuju-gfootball/$version/json")
|
|
380
|
+
case "$status" in
|
|
381
|
+
200) echo "cuju-gfootball $version is on PyPI, so nothing uploads"; echo "upload=false" >> "$GITHUB_OUTPUT" ;;
|
|
382
|
+
404) echo "cuju-gfootball $version is new and uploads"; echo "upload=true" >> "$GITHUB_OUTPUT" ;;
|
|
383
|
+
*) echo "PyPI answered $status for cuju-gfootball $version"; exit 1 ;;
|
|
384
|
+
esac
|
|
385
|
+
ls -l dist
|
|
386
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
387
|
+
if: steps.pypi.outputs.upload == 'true'
|
|
388
|
+
|
|
389
|
+
# Uploads only when PyPI lacks the version, and any answer but found or missing stops the job.
|
|
390
|
+
publish-grf-media:
|
|
391
|
+
needs: [grf-media]
|
|
392
|
+
if: >-
|
|
393
|
+
github.event_name == 'workflow_dispatch' && inputs.publish
|
|
394
|
+
&& startsWith(github.ref, 'refs/tags/v')
|
|
395
|
+
runs-on: ubuntu-24.04
|
|
396
|
+
environment: pypi-grf-media
|
|
397
|
+
permissions:
|
|
398
|
+
contents: read
|
|
399
|
+
id-token: write
|
|
400
|
+
steps:
|
|
401
|
+
- uses: actions/checkout@v7
|
|
402
|
+
with:
|
|
403
|
+
persist-credentials: false
|
|
404
|
+
- name: Check that the tag names the version of the package
|
|
405
|
+
run: |
|
|
406
|
+
version=$(python3 -c "import runpy; print(runpy.run_path('python/cuju/_version.py')['__version__'])")
|
|
407
|
+
if [ "$GITHUB_REF_NAME" != "v$version" ]; then
|
|
408
|
+
echo "the tag $GITHUB_REF_NAME names another version than __version__ $version"
|
|
409
|
+
exit 1
|
|
410
|
+
fi
|
|
411
|
+
- uses: actions/download-artifact@v8
|
|
412
|
+
with:
|
|
413
|
+
name: grf-media
|
|
414
|
+
path: dist
|
|
415
|
+
- name: Upload cuju-grf-media only where PyPI lacks its version
|
|
416
|
+
id: pypi
|
|
417
|
+
run: |
|
|
418
|
+
version=$(python3 -c "import runpy; print(runpy.run_path('packaging/cuju-grf-media/src/cuju/grf_media/__init__.py')['__version__'])")
|
|
419
|
+
status=$(curl -s -o /dev/null -w '%{http_code}' "https://pypi.org/pypi/cuju-grf-media/$version/json")
|
|
420
|
+
case "$status" in
|
|
421
|
+
200) echo "cuju-grf-media $version is on PyPI, so nothing uploads"; echo "upload=false" >> "$GITHUB_OUTPUT" ;;
|
|
422
|
+
404) echo "cuju-grf-media $version is new and uploads"; echo "upload=true" >> "$GITHUB_OUTPUT" ;;
|
|
423
|
+
*) echo "PyPI answered $status for cuju-grf-media $version"; exit 1 ;;
|
|
424
|
+
esac
|
|
425
|
+
ls -l dist
|
|
426
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
427
|
+
if: steps.pypi.outputs.upload == 'true'
|