Skip to content

Commit

Permalink
UI Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Apr 22, 2024
1 parent 0e3d94a commit 1e78c21
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ci/compute-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,22 @@ def generate_dispatch_job_name(matrix_job, job_type):

gpu_str = ""
if job_type in matrix_yaml['gpu_required_job_types']:
gpu_str = "[" + matrix_job['gpu'].upper() + "]"
gpu_str = "," + matrix_job['gpu'].upper()

cuda_compile_arch = (" sm{" + matrix_job['cmake_cuda_arch'] + "}") if 'cmake_cuda_arch' in matrix_job else ""
cmake_options = (" " + matrix_job['cmake_options']) if 'cmake_options' in matrix_job else ""
cpu_str = (" " + matrix_job['cpu']) if matrix_job['cpu'] else ""

return "[{}-{} C++{}] {}{}: {}{}{}".format(
extra_args=cuda_compile_arch + cmake_options
extra_args = f":{extra_args}" if extra_args else ""

return "[{}-{} C++{}] {}({}{}){}".format(
matrix_job['host_compiler']['name'],
matrix_job['host_compiler']['version'],
matrix_job['std'][0],
formatted_job_type,
matrix_job['cpu'],
gpu_str,
cuda_compile_arch,
cmake_options,
cpu_str
extra_args
)


Expand Down

0 comments on commit 1e78c21

Please sign in to comment.