You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							566 B
						
					
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							566 B
						
					
					
				| info("Building with CUDA requires CMake v3.8+")
 | |
| cmake_minimum_required(VERSION 3.8.0)
 | |
| enable_language( CUDA )
 | |
| 
 | |
| find_package(CUDA REQUIRED)
 | |
| 
 | |
| include_directories(${CUDA_INCLUDE_DIRS})
 | |
| SET(ALL_CUDA_LIBS ${CUDA_LIBRARIES} ${CUDA_cusparse_LIBRARY} ${CUDA_cublas_LIBRARY})
 | |
| SET(LIBS ${LIBS} ${ALL_CUDA_LIBS})
 | |
| 
 | |
| message(STATUS "CUDA_LIBRARIES: ${CUDA_INCLUDE_DIRS} ${ALL_CUDA_LIBS}")
 | |
| 
 | |
| set(CUDA_PROPAGATE_HOST_FLAGS OFF)
 | |
| set(CUDA_SEPARABLE_COMPILATION ON)
 | |
| set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS}; -O3 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62;")
 |