set CMAKE_CUDA_ARCHITECTURES for newer cmakes in camp (#31333)
This commit is contained in:
		| @@ -46,6 +46,7 @@ def cmake_args(self): | ||||
| 
 | ||||
|             if not spec.satisfies('cuda_arch=none'): | ||||
|                 cuda_arch = spec.variants['cuda_arch'].value | ||||
|                 options.append('-DCMAKE_CUDA_ARCHITECTURES={0}'.format(cuda_arch[0])) | ||||
|                 options.append('-DCUDA_ARCH=sm_{0}'.format(cuda_arch[0])) | ||||
|                 flag = '-arch sm_{0}'.format(cuda_arch[0]) | ||||
|                 options.append('-DCMAKE_CUDA_FLAGS:STRING={0}'.format(flag)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Chris White
					Chris White