Documentation of cudaSetDeviceFlags incomplete? cudaDeviceMapHost flag missing in list of valid flag

In the cudaHostAlloc documentation it is written that “cudaSetDeviceFlags() must have been called with the cudaDeviceMapHost flag in order for the cudaHostAllocMapped flag to have any effect”.
However, in the cudaSetDeviceFlags documentation there is no such flag in the list of options. So, the cudaDeviceMapHost flag should be added to the options here, right?

I think you are right. The flag is not mentioned in the API reference.

Thanks for bringing this to our attention. I am following up with our driver team to get this sorted out.