Eclipse IDE does not recognize CUDA functions

I have created a black project in Eclipse and wrote a cuda code. As you can see below, the problem is that it doesn’t recognize cuda related functions.

I have installed CUDA eclipse plugin as well.

Is there any other header files to include?

P.S: Below you can see the versions.


Version: 2022-12 (4.26.0)
Build id: 20221201-1913


$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Fri_Dec_17_18:16:03_PST_2021
Cuda compilation tools, release 11.6, V11.6.55
Build cuda_11.6.r11.6/compiler.30794723_0

add to eclipse includes path: “usr/local/cuda/include”