Skip to content

[Issue]: AttributeError: module 'nvshmem.bindings' has no attribute 'fp16_sum_reduce_on_stream' #47

@foraxe

Description

@foraxe

How is this issue impacting you?

Application crash

Share Your Debug Logs

No response

Steps to Reproduce the Issue

fail when run nvshmem4py/perftest/reduction_on_stream.py

fp16

Command:

OMPI_ALLOW_RUN_AS_ROOT=1 \
 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
mpirun -np 4 -N 4 --bind-to none \
  python nvshmem4py/perftest/reduction_on_stream.py \
    -b 2M -e 2M -f 2 \
    -d fp16 -o sum \
    -w 5 -n 20

Former error:

AttributeError: module 'nvshmem.bindings' has no attribute 'fp16_sum_reduce_on_stream'. Did you mean: 'int16_sum_reduce_on_stream'?

bf16

Command:

OMPI_ALLOW_RUN_AS_ROOT=1 \
 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
mpirun -np 4 -N 4 --bind-to none \
  python nvshmem4py/perftest/reduction_on_stream.py \
    -b 2M -e 2M -f 2 \
    -d bf16 -o sum \
    -w 5 -n 20

Former error:

AttributeError: module 'nvshmem.bindings' has no attribute 'bf16_sum_reduce_on_stream'. Did you mean: 'int16_sum_reduce_on_stream'?

### Known Issue (Out of Scope)

The following dtypes are listed in the perftest argument parser choices but have no corresponding bindings:

* `ulonglong` — missing `ulonglong_*_reduce_on_stream` bindings
* `ptrdiff` — missing `ptrdiff_*_reduce_on_stream` bindings


### NVSHMEM Version

3.4.5+cuda 13.0

### Your platform details

_No response_

### Error Message & Behavior

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions