Skip to content

Reply To: cavity3d , run-time error ‘invalid device symbol’, CUDA 11.7

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics cavity3d , run-time error ‘invalid device symbol’, CUDA 11.7 Reply To: cavity3d , run-time error ‘invalid device symbol’, CUDA 11.7

#6599
Adrian
Keymaster

The CUDA_ARCH value needs to match the targeted GPU. i.e. for a V100 (Volta) 70 or 72 should be good (lower is also possible but will lead to additional startup time for bytecode translation).

See also the reference table in rules.mk mentioned in the comment for CUDA_ARCH in config/gpu_only.mk.

Note that further adaptation (e.g. following config/gpu_openmpi.mk) will be needed for MPI-based multi-GPU execution (regarding the inclusion of mpic++ output).

Especially for the laminar/cavity3d example you will want to significantly increase the spatial resolution from the default value to take advantage of the GPU.

See also e.g. the forum/gpu-examples thread.

  • This reply was modified 1 year, 10 months ago by Adrian.
  • This reply was modified 1 year, 10 months ago by Adrian.