Random Forest in CUDA C

Hello, I have implemented random forest for image classificatin in C language where I have a function that defines the single tree structure and another function (the forest) that calls the first function many times. Now I have to do the same in CUDA C. Does someone can give some guidelines and tell me if there are some existing functions?