Skip to content

Conversation

@yosefe
Copy link
Contributor

@yosefe yosefe commented Sep 28, 2025

No description provided.

@yosefe yosefe force-pushed the topic/uct-gda-test-add-runtime-config-for branch 7 times, most recently from 8fceb3f to faa224f Compare September 29, 2025 13:43
@yosefe yosefe force-pushed the topic/uct-gda-test-add-runtime-config-for branch from faa224f to 89ca917 Compare September 29, 2025 17:24
@yosefe
Copy link
Contributor Author

yosefe commented Oct 3, 2025

@iyastreb @brminich can you pls review?

ucp_device_request_t &req = request_mgr.get_request();
status = ucp_perf_cuda_send_nbx<level, cmd>(params, idx, req);
if (status != UCS_OK) {
ucs_device_error("send failed: %d", status);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep error macro for convinience?

Comment on lines +53 to +62
const char *basename = path;
const char *p;

for (p = path; *p != '\0'; p++) {
if (*p == '/') {
basename = p + 1;
}
}

return basename;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use standard lib:

Suggested change
const char *basename = path;
const char *p;
for (p = path; *p != '\0'; p++) {
if (*p == '/') {
basename = p + 1;
}
}
return basename;
const char *basename = strrchr(path, '/');
return basename ? basename + 1 : path;


UCS_F_DEVICE const char *ucs_device_log_source_file(const char *file)
{
static const char *cached_source_file = NULL;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this caching is always safe
What happens if translation unit includes a header file which contains a logger call?
Which FILE will be cached?



/*
* Read a 64-bit atomic value from a global memory address.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please align all docs in this file

* See file LICENSE for terms.
*/

#ifndef UCS_STUB_DEVICE_CUH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UCS_STUB_DEVICE_H maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants