Commit 73abd647 authored by incardon's avatar incardon
Browse files

Fixing cudify test

parent 08b831bc
Pipeline #2538 passed with stages
in 19 seconds
if(CUDA_FOUND OR CUDA_ON_CPU)
set(CUDA_SOURCES memory/CudaMemory.cu)
set(CUDA_SOURCES memory/CudaMemory.cu util/cudify/cudify_unit_test.cu)
else()
set(CUDA_SOURCES )
endif()
......@@ -7,12 +7,13 @@ endif()
if (CUDA_ON_CPU)
add_definitions(-DCUDA_ON_CPU)
set_source_files_properties(${CUDA_SOURCES} PROPERTIES LANGUAGE CXX)
set_source_files_properties(${CUDA_SOURCES} PROPERTIES COMPILE_FLAGS "-D__NVCC__ -DCUDA_GPU -DCUDART_VERSION=11000")
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_definitions("-x c++")
endif()
endif()
add_executable(mem main.cpp memory/HeapMemory.cpp util/cudify/cudify_vars.cpp util/cudify/cudify_unit_test.cpp ${CUDA_SOURCES})
add_executable(mem main.cpp memory/HeapMemory.cpp util/cudify/cudify_vars.cpp ${CUDA_SOURCES})
add_library(ofpmmemory STATIC memory/HeapMemory.cpp util/cudify/cudify_vars.cpp memory/PtrMemory.cpp ${CUDA_SOURCES})
add_library(ofpmmemory_dl SHARED memory/HeapMemory.cpp util/cudify/cudify_vars.cpp memory/PtrMemory.cpp ${CUDA_SOURCES})
......
#ifndef CUDIFY_SEQUENCIAL_HPP_
#define CUDIFY_SEQUENCIAL_HPP_
#ifdef BOOST_HAVE_CONTEXT
#include "config.h"
#define CUDIFY_ACTiVE
#ifdef HAVE_BOOST_CONTEXT
#define CUDIFY_ACTIVE
#include "util/cuda_util.hpp"
#include "boost/bind.hpp"
......
......@@ -2,7 +2,6 @@
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "util/cuda_launch.hpp"
#include "memory/CudaMemory.cuh"
......
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