chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])
+48
View File
@@ -0,0 +1,48 @@
diff --git a/include/nccl_device/gin/proxy/gin_proxy.h b/include/nccl_device/gin/proxy/gin_proxy.h
--- a/include/nccl_device/gin/proxy/gin_proxy.h
+++ b/include/nccl_device/gin/proxy/gin_proxy.h
@@ -55,7 +55,7 @@ NCCL_DEVICE_INLINE void postGfd(Coop coop, ncclGinProxyGpuCtx_t* proxyCtx, ncclG
-// 4x16 byte store with the write-through cache hint
+// 16x4 byte store with the write-through cache hint
#pragma unroll
- for (uint8_t i = 0; i < 4; i++) {
- __stwt((uint4*)&q[idx] + i, ((uint4*)gfd)[i]);
+ for (uint8_t i = 0; i < 16; i++) {
+ __stwt((__half2*)&q[idx] + i, ((__half2*)gfd)[i]);
}
}
}
diff --git a/include/nccl_device/utility.h b/include/nccl_device/utility.h
--- a/include/nccl_device/utility.h
+++ b/include/nccl_device/utility.h
@@ -17,7 +17,7 @@
#define NCCL_CHECK_CUDACC 0
#endif
#else
- #if __CUDACC__
+ #ifdef __CUDACC__
#define NCCL_CHECK_CUDACC 1
#else
#define NCCL_CHECK_CUDACC 0
#endif
diff --git a/include/nccl_device/gin/gdaki/doca_gpunetio/common/doca_gpunetio_verbs_def.h b/include/nccl_device/gin/gdaki/doca_gpunetio/common/doca_gpunetio_verbs_def.h
--- a/include/nccl_device/gin/gdaki/doca_gpunetio/common/doca_gpunetio_verbs_def.h
+++ b/include/nccl_device/gin/gdaki/doca_gpunetio/common/doca_gpunetio_verbs_def.h
@@ -49,7 +49,7 @@ extern "C" {
/**
* Macro to temporarily cast a variable to volatile.
*/
-#define DOCA_GPUNETIO_VOLATILE(x) (*(volatile typeof(x) *)&(x))
+#define DOCA_GPUNETIO_VOLATILE(x) (*(volatile __typeof__(x) *)&(x))
/**
* Default warp size value of 32 threads
@@ -123,7 +123,7 @@ extern "C" {
(1ULL << DOCA_GPUNETIO_VERBS_MAX_TRANSFER_SIZE_SHIFT) // 1GiB
#ifndef ACCESS_ONCE
-#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
+#define ACCESS_ONCE(x) (*(volatile __typeof__(x) *)&(x))
#endif
#ifndef READ_ONCE
+13
View File
@@ -0,0 +1,13 @@
"""Loads the nccl library, used by TF."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
tf_http_archive(
name = "nccl_archive",
build_file = "@xla//third_party/nccl:archive.BUILD",
patch_file = ["@xla//third_party/nccl:archive.patch"],
sha256 = "e67239212c395bfdb398a7519491840d06fdf6b599c299f97c7ed0109777bba1",
strip_prefix = "nccl-2.29.7-1",
urls = tf_mirror_urls("https://github.com/NVIDIA/nccl/archive/refs/tags/v2.29.7-1.tar.gz"),
)