Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Config] Add configuration file (#359)
Auto generates the following config file at ~/.config/hidet/hidet.toml, which the user can then edit to customize the config. Setting `hidet.option....` in a script does not change this file. ```toml # The (warmup, number, repeat) parameters for benchmarking. The benchmarking will run warmup + number * repeat times. bench_config = [3, 10, 3] # The search space level. # choices: [0, 1, 2] search_space = 0 # Whether to enable operator cache on disk. # choices: [True, False] cache_operator = true # The directory to store the cache. cache_dir = "/home/allan/Programs/hidet_repo/hidet/.hidet_cache" # Whether to build operators in parallel. # choices: [True, False] parallel_build = false # The pair (max_parallel_jobs, mem_gb_per_job) that describe the maximum number of parallel jobs and memory reserved for each job parallel_tune = [-1, 1.5] # Whether to save the IR when lower an IRModule to the operator cache. # choices: [True, False] save_lower_ir = false # Whether to cache the generated kernels during tuning. # choices: [True, False] debug_cache_tuning = false # Whether to show the variable id in the IR. # choices: [True, False] debug_show_var_id = false # Whether to check shapes of compiled graph and tasks during execution. # choices: [True, False] runtime_check = true # Whether to show the verbose flow graph. # choices: [True, False] debug_show_verbose_flow_graph = false # The address of the compile server. Can be an IP address or a domain name. "compile_server.addr" = "localhost" # The port of the compile server. "compile_server.port" = 8329 # Whether to enable the compile server. # choices: [True, False] "compile_server.enabled" = false # The user name to access the compile server. "compile_server.username" = "admin" # The password to access the compile server. "compile_server.password" = "admin_password" # The URL of the repository that the remote server will use. "compile_server.repo_url" = "https://github.com/hidet-org/hidet" # The version (e.g., branch, commit, or tag) that the remote server will use. "compile_server.repo_version" = "main" # The CUDA architecture to compile the kernels for (e.g., "sm_70"). "auto" for auto-detect. "cuda.arch" = "auto" ``` --------- Co-authored-by: Allan Lin <[email protected]>
- Loading branch information