${CMAKE_CURRENT_BINARY_DIR}/${_target_short}/interrupt_guard.cc
)
- set_source_files_properties(${_source_file} PROPERTIES LANGUAGE CXX)
-
SET_TARGET_PROPERTIES(${_target} PROPERTIES OUTPUT_NAME ${_target_short})
DEAL_II_SETUP_TARGET(${_target} ${_build})
# in the "CMake in user projects" page accessible from the "User info"
# page of the documentation.
SET(TARGET_SRC
- ${TARGET}.cu
+ ${TARGET}.cc
)
# Usually, you will not need to modify anything beyond this point...
IF(DEAL_II_WITH_CUDA)
SET(_separate_src
${_separate_src}
- cuda.cu
- partitioner.cu
+ cuda.cc
+ partitioner_cuda.cc
)
- set_source_files_properties(cuda.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(partitioner.cu PROPERTIES LANGUAGE CXX)
ENDIF()
# determined by profiling
IF(DEAL_II_WITH_CUDA)
SET(_separate_src
${_separate_src}
- vector_memory.cu
- affine_constraints.cu
+ vector_memory_cuda.cc
+ affine_constraints_cuda.cc
)
- set_source_files_properties(vector_memory.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(affine_constraints.cu PROPERTIES LANGUAGE CXX)
ENDIF()
SET(_inst
IF(DEAL_II_WITH_CUDA)
SET(_separate_src
${_separate_src}
- cuda_kernels.cu
- cuda_precondition.cu
- cuda_solver_direct.cu
- cuda_sparse_matrix.cu
- cuda_vector.cu
- la_parallel_vector.cu
- read_write_vector.cu
+ cuda_kernels.cc
+ cuda_precondition.cc
+ cuda_solver_direct.cc
+ cuda_sparse_matrix.cc
+ cuda_vector.cc
+ la_parallel_vector_cuda.cc
+ read_write_vector_cuda.cc
)
- set_source_files_properties(cuda_kernels.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(cuda_precondition.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(cuda_solver_direct.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(cuda_sparse_matrix.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(cuda_vector.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(la_parallel_vector.cu PROPERTIES LANGUAGE CXX)
- set_source_files_properties(read_write_vector.cu PROPERTIES LANGUAGE CXX)
ENDIF()
# determined by profiling
IF(DEAL_II_WITH_CUDA)
SET(_src
- cuda_matrix_free.cu
+ cuda_matrix_free.cc
${_src}
)
SET(_inst
${_inst}
)
-
- set_source_files_properties(cuda_matrix_free.cu PROPERTIES LANGUAGE CXX)
ENDIF()
DEAL_II_ADD_LIBRARY(obj_matrix_free OBJECT ${_src} ${_header} ${_inst})