Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running the example at `python/examples/basic.py` results in the following ```text [1715298582.923398] [f059c9da14bb:1 :0] parser.c:2033 UCX WARN unused environment variable: UCX_MEMTYPE_CACHE (maybe: UCX_MEMTYPE_CACHE?) [1715298582.923398] [f059c9da14bb:1 :0] parser.c:2033 UCX WARN (set UCX_WARN_UNUSED_ENV_VARS=n to suppress this warning) Traceback (most recent call last): File "/opt/work/./python/examples/basic.py", line 259, in <module> main() File "/opt/work/./python/examples/basic.py", line 227, in main listener_ep.tag_send(Array(send_bufs[0]), tag=ucx_api.UCXTag(0)), AttributeError: module 'ucxx._lib.libucxx' has no attribute 'UCXTag'. Did you mean: 'UCXXTag'? ``` It looks to me like that suggestion is right, and that that class is callsed `UCXXTag`: https://github.com/rapidsai/ucxx/blob/2195ceabf35b404b3ae6b09f784d1d312b4b6fce/python/ucxx/_lib/tag.pyx#L8 This PR proposes the following: * fixing that reference * adding a print statement at the end so that you know the example reached the end successfully without having to inspect the exit code of the process ## Notes for Reviewers I found this because I was using this example to smoke test changes to the new ucx wheels: rapidsai/ucx-wheels#5 ### How I tested this ```shell docker run \ --rm \ --gpus 1 \ -v $(pwd):/opt/work \ -w /opt/work \ -it rapidsai/citestwheel:cuda12.2.2-ubuntu22.04-py3.10 \ pip install 'ucxx-cu12==0.38.*,>=0.0.0a0' && python ./python/examples/basic.py ``` Authors: - James Lamb (https://github.com/jameslamb) - Peter Andreas Entschev (https://github.com/pentschev) Approvers: - Peter Andreas Entschev (https://github.com/pentschev) URL: #229
- Loading branch information