My first CUDA program

CUDA is an exciting tool for accelerating current models. Here I am applying it to a simple water balance model.

What a water balance model does can be simply described by pouring water into/extracting water out from a water bucket. Here “pouring water into the bucket” can be in the form of precipitation, or irrigation, etc. “extracting water out from bucket” can happen in the forms of evaporation, transpiration, runoff process, etc. This makes the calculation framework ideal at CUDA core scale, assuming that I am now involving too complicated presentation of these processes. It is notable that modern hydrological models do contain sophisticated math presentation of these processes, but for now I am not bothering my CUDA threads with them.

Continue reading