You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from_rank: The rank ID from which to read the data
384
384
mask: Optional mask for conditional loading
385
385
other: Value to return for masked-out elements. If not provided, the result for masked-out elements is undefined.
386
+
cache_modifier (str, optional): Controls cache behavior of the load.
387
+
388
+
Supported values:
389
+
- None: *(default)* — Same as ".ca". Uses cache at all levels (CU, L2, LLC) with LRU policy.
390
+
- ".ca": Cache at all levels (CU, L2, LLC) with LRU policy.
391
+
- ".cg": Bypasses the CU (L1) cache, streams through L2, and may hit in LLC but the line is not retained or inserted.
392
+
- ".cv": Bypasses all GPU caches (CU and L2) and fetches directly from system memory. If data exists in the LLC, it may hit, but is not retained or inserted.
393
+
Ensures global coherence by invalidating stale GPU cache lines.
394
+
395
+
volatile (bool, optional): If True, disables compiler optimizations that
396
+
could reorder or eliminate the load. Defaults to False.
from_rank: The rank ID from which to read the data
425
445
mask: Optional mask for conditional operations
426
446
other: Value to return for masked-out elements during the load operation. If not provided, the result for masked-out elements is undefined.
447
+
load_cache_modifier (str, optional): Controls cache behavior of the load. Supported values are:
448
+
- None: *(default)* — Same as ".ca". Uses cache at all levels (CU, L2, LLC) with LRU policy.
449
+
- ".ca": Cache at all levels (CU, L2, LLC) with LRU policy.
450
+
- ".cg": Bypasses the CU (L1) cache, streams through L2, and may hit in LLC but the line is not retained or inserted.
451
+
- ".cv": Bypasses all GPU caches (CU and L2) and fetches directly from system memory. If data exists in the LLC, it may hit, but is not retained or inserted.
452
+
453
+
store_cache_modifier (str, optional): Controls cache behavior of the store. Supported values are:
454
+
- None: *(default)* — Same as ".wb". Uses write-back caching at all levels (CU, L2, LLC) with LRU policy.
455
+
- ".wb": Write-back. Write-allocate on L1 miss, inserted into caches and written back later.
456
+
- ".cg": Cache Global. Equivalent to ".wb" — stored through L1 → L2 → LLC under LRU.
457
+
- ".cs": Cache Streaming. Bypasses L1, streamed through L2, not retained in LLC.
458
+
- ".wt": Write-Through. Bypasses L1 and L2 (coherent cache bypass), may hit in LLC with LRU.
427
459
428
460
Example:
429
461
>>> # Copy from rank 1 to current rank's local memory
to_rank: The rank ID to which the data will be written
445
479
mask: Optional mask for conditional operations
446
480
other: Value to return for masked-out elements during the load operation. If not provided, the result for masked-out elements is undefined.
481
+
load_cache_modifier (str, optional): Controls cache behavior of the load. Supported values are:
482
+
- None: *(default)* — Same as ".ca". Uses cache at all levels (CU, L2, LLC) with LRU policy.
483
+
- ".ca": Cache at all levels (CU, L2, LLC) with LRU policy.
484
+
- ".cg": Bypasses the CU (L1) cache, streams through L2, and may hit in LLC but the line is not retained or inserted.
485
+
- ".cv": Bypasses all GPU caches (CU and L2) and fetches directly from system memory. If data exists in the LLC, it may hit, but is not retained or inserted.
486
+
487
+
store_cache_modifier (str, optional): Controls cache behavior of the store. Supported values are:
488
+
- None: *(default)* — Same as ".wb". Uses write-back caching at all levels (CU, L2, LLC) with LRU policy.
489
+
- ".wb": Write-back. Write-allocate on L1 miss, inserted into caches and written back later.
490
+
- ".cg": Cache Global. Equivalent to ".wb" — stored through L1 → L2 → LLC under LRU.
491
+
- ".cs": Cache Streaming. Bypasses L1, streamed through L2, not retained in LLC.
492
+
- ".wt": Write-Through. Bypasses L1 and L2 (coherent cache bypass), may hit in LLC with LRU.
447
493
448
494
Example:
449
495
>>> # Copy from current rank's local memory to rank 1
to_rank: The rank ID that will receive the data (destination rank)
472
528
mask: Optional mask for conditional operations
473
529
other: Value to return for masked-out elements during the load operation. If not provided, the result for masked-out elements is undefined.
530
+
load_cache_modifier (str, optional): Controls cache behavior of the load. Supported values are:
531
+
- None: *(default)* — Same as ".ca". Uses cache at all levels (CU, L2, LLC) with LRU policy.
532
+
- ".ca": Cache at all levels (CU, L2, LLC) with LRU policy.
533
+
- ".cg": Bypasses the CU (L1) cache, streams through L2, and may hit in LLC but the line is not retained or inserted.
534
+
- ".cv": Bypasses all GPU caches (CU and L2) and fetches directly from system memory. If data exists in the LLC, it may hit, but is not retained or inserted.
535
+
536
+
store_cache_modifier (str, optional): Controls cache behavior of the store. Supported values are:
537
+
- None: *(default)* — Same as ".wb". Uses write-back caching at all levels (CU, L2, LLC) with LRU policy.
538
+
- ".wb": Write-back. Write-allocate on L1 miss, inserted into caches and written back later.
539
+
- ".cg": Cache Global. Equivalent to ".wb" — stored through L1 → L2 → LLC under LRU.
540
+
- ".cs": Cache Streaming. Bypasses L1, streamed through L2, not retained in LLC.
541
+
- ".wt": Write-Through. Bypasses L1 and L2 (coherent cache bypass), may hit in LLC with LRU.
474
542
475
543
Example:
476
544
>>> # Copy from rank 1 to rank 0 (current rank must be either 1 or 0)
0 commit comments