Utils.c:48:12: error: expected expression before ‘dim3’Īs you suggested, unfortunately throws this error: $ nvcc -Wno-deprecated-gpu-targets -o project4 nn.cu parallel.cu utils.c Utils.c: In function ‘getGridBasedOnBlockSize’:
![dim3 to d1b sspr dim3 to d1b sspr](https://pubs.rsc.org/image/article/2017/CP/c7cp01599b/c7cp01599b-f4_hi-res.gif)
#Dim3 to d1b sspr code
The specific code is: dim3 getGridBasedOnBlockSize(int width, int height, int block_size) ’ was expectedĪnd for the dim3(.) case, it shows: nvcc -Wno-deprecated-gpu-targets -o project4 nn.cu parallel.cu utils.c I would like to return a dim3 object from a function.