-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[leaderboard] Move leaderboard utility into compiler_gym namespace.
This adds a compiler_gym.leaderboard module that contains the LLVM codesize leaderboard helper code. New API docs provide improved explanation of how to use it. Issue #158.
- Loading branch information
1 parent
0b5c7a0
commit 9e23f69
Showing
14 changed files
with
178 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
load("@rules_python//python:defs.bzl", "py_library") | ||
|
||
py_library( | ||
name = "leaderboard", | ||
srcs = ["__init__.py"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
":llvm_codesize", | ||
], | ||
) | ||
|
||
py_library( | ||
name = "llvm_codesize", | ||
srcs = ["llvm_codesize.py"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//compiler_gym:compiler_env_state", | ||
"//compiler_gym/bin:validate", | ||
"//compiler_gym/envs", | ||
"//compiler_gym/util", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
"""This module contains helper submodules for creating CompilerGym leaderboard submissions.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
compiler_gym.leaderboard | ||
======================== | ||
|
||
We provide `leaderboards | ||
<https://github.com/facebookresearch/CompilerGym#leaderboards>`_ to track the | ||
performance of user-submitted algorithms on CompilerGym tasks. The goal of the | ||
leaderboards is to provide a venue for researchers to promote their work, and to | ||
provide a common benchmark for evaluating approaches. The | ||
:code:`compiler_gym.leaderboard` module contains helper submodules that can be | ||
used for preparing leaderboard submissions. | ||
|
||
LLVM Codesize | ||
------------- | ||
|
||
.. automodule:: compiler_gym.leaderboard.llvm_codesize | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
load("@rules_python//python:defs.bzl", "py_test") | ||
|
||
py_test( | ||
name = "llvm_codesize_test", | ||
srcs = ["llvm_codesize_test.py"], | ||
deps = [ | ||
"//compiler_gym/leaderboard:llvm_codesize", | ||
"//tests:test_main", | ||
"//tests/pytest_plugins:common", | ||
], | ||
) |
Oops, something went wrong.