Compiler warnings fix 2 (#1801)

* Changes to device code

* Changes to src/misc

* Changes to graph

* src/include changes

* src/transport changes

* changes in init, enqueue, proxy

* Changes to CMakeLists.txt

* Additional changes to device code

* Additional changes to net.cc

* adding 'compiler warning' tag to ease upstream merge'

* typo correction

* Addessing comments

* Additional changes for new commits

[ROCm/rccl commit: 3f8cac388e]
Tento commit je obsažen v:
Avinash
2025-08-05 17:36:23 -05:00
odevzdal GitHub
rodič df3b7e477f
revize f34d760613
28 změnil soubory, kde provedl 104 přidání a 106 odebrání
+4 -4
Zobrazit soubor
@@ -180,11 +180,11 @@ static gdr_t ncclGdrInit() {
template <typename T>
static ncclResult_t ncclGdrCudaCalloc(T** ptr, T** devPtr, size_t nelem, void** gdrHandle, hipStream_t stream) {
gdr_info_t info;
// gdr_info_t info; // unused variable - compiler warning
size_t mapSize;
gdr_mh_t mh;
// gdr_mh_t mh; // unused variable - compiler warning
char *devMem;
void *gdrMap;
// void *gdrMap; // unused variable - compiler warning
mapSize = ncclSizeOfT<T>()*nelem;
@@ -216,7 +216,7 @@ static ncclResult_t ncclGdrCudaCalloc(T** ptr, T** devPtr, size_t nelem, void**
template <typename T>
static ncclResult_t ncclGdrCudaCopy(void *gdrHandle, T* dst, T* src, size_t nelem) {
gdr_mem_desc_t *md = (gdr_mem_desc_t*)gdrHandle;
//gdr_mem_desc_t *md = (gdr_mem_desc_t*)gdrHandle; // unused variable - compiler warning
memcpy(dst, src, nelem*sizeof(T));
return ncclSuccess;
}
+1 -6
Zobrazit soubor
@@ -73,11 +73,6 @@ inline __device__ rccl_float8 hadd(rccl_float8 x, rccl_float8 y)
u.i16_vec = __builtin_amdgcn_cvt_scalef32_pk_fp8_f16(v1, v1, /* scale */ 1.f, 0);
return u.fp8[0];
#elif __HIP_DEVICE_COMPILE__ && defined(__gfx942__)
union
{
uint32_t i32val;
rccl_float8 i8val[4];
} val;
float2_t v;
uint32_t ival = 0;
@@ -235,7 +230,7 @@ namespace rocblas_hip_f8_impl
else
x = reinterpret_cast<uint16_t&>(_x);
uint32_t y, head, mantissa;
uint32_t head, mantissa;
int exponent, bias;
uint32_t sign;