cuIpcGetMemHandle returned CUDA_ERROR_OUT_OF_MEMORY on WSL2

I am running the FlexFlow framework in WSL2 with an nvidia 3090 with 24GB of video memory, but I get a CUDA_ERROR_OUT_OF_MEMORY error at the cuIpcGetMemHandle function in the figure, where the parameter size represents the size of video memory to be allocated. Subtracting the video memory occupied by Windows, the available video memory is close to 21GB. I set the size to 18GB here, and cuMemAlloc can allocate successfully, but cuIpcGetMemHandle shows CUDA_ERROR_OUT_OF_MEMORY. What is the possible cause of this error?