I have a 3D array on device and want to reshape it to 1D. What is the best possible option. Don’t want do a data copy from location to another.
here is a example code:
integer, dimension(10,20,30),device:: temp1 integer,dimension(6000),device:temp2 temp2 = reshape(source=temp1,shape=shape(temp2))
The above code doesn’t seem to work.
I was wondering whether reshape is supported in cuda fortan or not.
I tried googling but was unable to get any useful information.