i have a question:
now i have define a three-dimensional array in CPU(use malloc funtion),i want to konw how to define a three-dimensional array in >GPU(device),and how to copy data from cpu(host) to GPU(device)?
my code to define a three-dimensional array(353535) on cpu as follow:
i have a question:
now i have define a three-dimensional array in CPU(use malloc funtion),i want to konw how to define a three-dimensional array in >GPU(device),and how to copy data from cpu(host) to GPU(device)?
my code to define a three-dimensional array(353535) on cpu as follow: