Query if a NVIDIA gpu is compute capable without using CUDA

For one of my project, I wish to query if a NVIDIA gpu is compute capable without linking to CUDA apis. Is there any other extensions that would help me achieve this? I am not ok to use nvml as this is also part of the CUDA toolkit.