openucx / ucc

Unified Collective Communication Library
https://openucx.github.io/ucc/
BSD 3-Clause "New" or "Revised" License
207 stars 97 forks source link

`--with-nvcc-gencode` help text differs slightly from expected format #1003

Open mhrywniak opened 3 months ago

mhrywniak commented 3 months ago

Looking at https://github.com/openucx/ucc/blob/cf97156bfa8880220d62de42d11b6bcce76905c6/config/m4/cuda.m4#L30

it says

    AC_ARG_WITH([nvcc-gencode],
                [AS_HELP_STRING([--with-nvcc-gencode=arch,code],
                                [Defines target GPU architecture,
                                 see nvcc -gencode option for details])],

although the sample strings are of the form e.g. ARCH7="-gencode=arch=compute_52,code=sm_52".

I think the help text should be tweaked to say --with-nvcc-gencode="-gencode=arch,code", or potentially the mechanism tweaked to automatically add -gencode=... to all flags.