├── .gitignore ├── LICENSE ├── README.md ├── algos ├── bruteforce │ └── bruteforce_search.py ├── ga │ └── genetic_search.py ├── gen │ ├── gen.py │ └── gen_chstone.py ├── greedy │ └── greedy_search.py ├── opentuner │ ├── hls_tuner.py │ └── run.sh └── rl │ ├── RL-PPO2.py │ ├── a3c_ray.py │ ├── dqn_ray.py │ ├── es_ray.py │ ├── logs │ └── parse_log.py │ ├── policies.py │ ├── ppo_ray.py │ ├── ppo_ray_ind_pgmfeat.py │ ├── ppo_ray_multi.py │ ├── ppo_ray_random.py │ ├── print_all_programs.py │ ├── restore.py │ ├── rm_run.sh │ ├── rollout_all_chstone.py │ ├── rollout_all_programs.py │ └── rollout_random_programs.py ├── dataset ├── prepare_train.py ├── train_chstone_act.pkl ├── train_chstone_pgm.pkl ├── train_rand.pkl ├── train_rand_act.pkl └── tree.py ├── env.sh ├── gym-hls ├── gym_hls │ ├── __init__.py │ └── envs │ │ ├── __init__.py │ │ ├── chstone_bm.py │ │ ├── geomean.py │ │ ├── getbaseline.py │ │ ├── getcycle.py │ │ ├── getfeatures.py │ │ ├── getox.py │ │ ├── getpgm.py │ │ ├── hls_env.py │ │ ├── hls_multi_env.py │ │ ├── random_bm.py │ │ ├── random_pgms.pkl │ │ └── utils.py └── setup.py ├── patch ├── Analysis.cpp ├── GlobalVarPass.cpp ├── InitializePasses.h ├── InstCount.cpp ├── Passes.h ├── README.md └── rollout.py └── results └── baseline ├── baseline.txt ├── ga.csv ├── greedy.csv ├── opentuner.csv ├── parse_baseline.py ├── parse_rollout.py ├── ppo_results_orig_norm_24pass_random_log.csv ├── report_ga.txt ├── report_in.txt └── sorted_baseline.txt /.gitignore: -------------------------------------------------------------------------------- 1 | run_*_p* 2 | __pycache__ 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/README.md -------------------------------------------------------------------------------- /algos/bruteforce/bruteforce_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/bruteforce/bruteforce_search.py -------------------------------------------------------------------------------- /algos/ga/genetic_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/ga/genetic_search.py -------------------------------------------------------------------------------- /algos/gen/gen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/gen/gen.py -------------------------------------------------------------------------------- /algos/gen/gen_chstone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/gen/gen_chstone.py -------------------------------------------------------------------------------- /algos/greedy/greedy_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/greedy/greedy_search.py -------------------------------------------------------------------------------- /algos/opentuner/hls_tuner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/opentuner/hls_tuner.py -------------------------------------------------------------------------------- /algos/opentuner/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/opentuner/run.sh -------------------------------------------------------------------------------- /algos/rl/RL-PPO2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/RL-PPO2.py -------------------------------------------------------------------------------- /algos/rl/a3c_ray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/a3c_ray.py -------------------------------------------------------------------------------- /algos/rl/dqn_ray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/dqn_ray.py -------------------------------------------------------------------------------- /algos/rl/es_ray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/es_ray.py -------------------------------------------------------------------------------- /algos/rl/logs/parse_log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/logs/parse_log.py -------------------------------------------------------------------------------- /algos/rl/policies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/policies.py -------------------------------------------------------------------------------- /algos/rl/ppo_ray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/ppo_ray.py -------------------------------------------------------------------------------- /algos/rl/ppo_ray_ind_pgmfeat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/ppo_ray_ind_pgmfeat.py -------------------------------------------------------------------------------- /algos/rl/ppo_ray_multi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/ppo_ray_multi.py -------------------------------------------------------------------------------- /algos/rl/ppo_ray_random.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/ppo_ray_random.py -------------------------------------------------------------------------------- /algos/rl/print_all_programs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/print_all_programs.py -------------------------------------------------------------------------------- /algos/rl/restore.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/restore.py -------------------------------------------------------------------------------- /algos/rl/rm_run.sh: -------------------------------------------------------------------------------- 1 | rm -rf run_*_p* 2 | -------------------------------------------------------------------------------- /algos/rl/rollout_all_chstone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/rollout_all_chstone.py -------------------------------------------------------------------------------- /algos/rl/rollout_all_programs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/rollout_all_programs.py -------------------------------------------------------------------------------- /algos/rl/rollout_random_programs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/algos/rl/rollout_random_programs.py -------------------------------------------------------------------------------- /dataset/prepare_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/dataset/prepare_train.py -------------------------------------------------------------------------------- /dataset/train_chstone_act.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/dataset/train_chstone_act.pkl -------------------------------------------------------------------------------- /dataset/train_chstone_pgm.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/dataset/train_chstone_pgm.pkl -------------------------------------------------------------------------------- /dataset/train_rand.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/dataset/train_rand.pkl -------------------------------------------------------------------------------- /dataset/train_rand_act.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/dataset/train_rand_act.pkl -------------------------------------------------------------------------------- /dataset/tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/dataset/tree.py -------------------------------------------------------------------------------- /env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/env.sh -------------------------------------------------------------------------------- /gym-hls/gym_hls/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/__init__.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/__init__.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/chstone_bm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/chstone_bm.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/geomean.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/geomean.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/getbaseline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/getbaseline.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/getcycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/getcycle.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/getfeatures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/getfeatures.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/getox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/getox.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/getpgm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/getpgm.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/hls_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/hls_env.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/hls_multi_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/hls_multi_env.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/random_bm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/random_bm.py -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/random_pgms.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/random_pgms.pkl -------------------------------------------------------------------------------- /gym-hls/gym_hls/envs/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/gym_hls/envs/utils.py -------------------------------------------------------------------------------- /gym-hls/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/gym-hls/setup.py -------------------------------------------------------------------------------- /patch/Analysis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/patch/Analysis.cpp -------------------------------------------------------------------------------- /patch/GlobalVarPass.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/patch/GlobalVarPass.cpp -------------------------------------------------------------------------------- /patch/InitializePasses.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/patch/InitializePasses.h -------------------------------------------------------------------------------- /patch/InstCount.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/patch/InstCount.cpp -------------------------------------------------------------------------------- /patch/Passes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/patch/Passes.h -------------------------------------------------------------------------------- /patch/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/patch/README.md -------------------------------------------------------------------------------- /patch/rollout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/patch/rollout.py -------------------------------------------------------------------------------- /results/baseline/baseline.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/baseline.txt -------------------------------------------------------------------------------- /results/baseline/ga.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/ga.csv -------------------------------------------------------------------------------- /results/baseline/greedy.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/greedy.csv -------------------------------------------------------------------------------- /results/baseline/opentuner.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/opentuner.csv -------------------------------------------------------------------------------- /results/baseline/parse_baseline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/parse_baseline.py -------------------------------------------------------------------------------- /results/baseline/parse_rollout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/parse_rollout.py -------------------------------------------------------------------------------- /results/baseline/ppo_results_orig_norm_24pass_random_log.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/ppo_results_orig_norm_24pass_random_log.csv -------------------------------------------------------------------------------- /results/baseline/report_ga.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/report_ga.txt -------------------------------------------------------------------------------- /results/baseline/report_in.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/report_in.txt -------------------------------------------------------------------------------- /results/baseline/sorted_baseline.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ucb-bar/autophase/HEAD/results/baseline/sorted_baseline.txt --------------------------------------------------------------------------------