Cuda or DirectX for raytracing?

I´m starting my final paper at college, and I need to implement a real-time path tracing, but I´m still in doubt if is better to use CUDA that is more generic, or something like DirectX or Vulkan, that support hardware raytracing (I suppose it will be faster). Any recommendation to me?