Commit 710e8a02 authored by Bram Veenboer's avatar Bram Veenboer

Add cuda-generic-mp.x

parent 9979b170
......@@ -2,4 +2,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
add_subdirectory(CPU)
add_subdirectory(CUDA)
add_subdirectory(Hybrid)
\ No newline at end of file
# Copyright (C) 2021 ASTRON (Netherlands Institute for Radio Astronomy)
# SPDX-License-Identifier: GPL-3.0-or-later
project(cuda-generic-mp.x)
# Set sources
set (${PROJECT_NAME}_sources
main.cpp
)
# Set build target
add_executable (${PROJECT_NAME} ${${PROJECT_NAME}_sources})
# Set include directories
target_include_directories(
${PROJECT_NAME} PRIVATE
${MPI_C_COMPILER_INCLUDE_DIRS}
)
# Set link libaries
set(LINK_LIBRARIES
idg-util
idg-cuda
${MPI_mpi_LIBRARY}
${MPI_mpi_cxx_LIBRARY}
)
target_link_libraries (
${PROJECT_NAME}
${LINK_LIBRARIES}
)
# install
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin/examples/cxx
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static
)
// Copyright (C) 2021 ASTRON (Netherlands Institute for Radio Astronomy)
// SPDX-License-Identifier: GPL-3.0-or-later
#include "idg-cuda.h"
using ProxyType = idg::proxy::cuda::Generic;
#include "../common.h"
int main(int argc, char *argv[]) {
run();
return 0;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment