Device cublas on cuda 10.1

How do I link against cublas functions in device code in cuda 10.1? It seems to be missing libcublas_device, and nvcc gives me an undefined reference to cublasDgemm_v2. Is cublas supported in device code in cuda 10.1 (or some other linpack alternative)?

You can’t. Device cublas was deprecated prior to CUDA 10.0, and removed from CUDA 10.0

It is no longer available.

“The cuBLAS library, to support the ability to call the same cuBLAS APIs from within the device routines (cublas_device), is dropped starting with CUDA 10.0.”