Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_devices
Commits
73abd647
Commit
73abd647
authored
Jan 01, 2021
by
incardon
Browse files
Fixing cudify test
parent
08b831bc
Pipeline
#2538
passed with stages
in 19 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
73abd647
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
}
)
...
...
src/util/cudify/cudify_sequencial.hpp
View file @
73abd647
#ifndef CUDIFY_SEQUENCIAL_HPP_
#define CUDIFY_SEQUENCIAL_HPP_
#i
fdef BOOST_HAVE_CONTEXT
#i
nclude "config.h"
#define CUDIFY_ACTiVE
#ifdef HAVE_BOOST_CONTEXT
#define CUDIFY_ACTIVE
#include "util/cuda_util.hpp"
#include "boost/bind.hpp"
...
...
src/util/cudify/cudify_unit_test.c
pp
→
src/util/cudify/cudify_unit_test.c
u
View file @
73abd647
...
...
@@ -2,7 +2,6 @@
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "util/cuda_launch.hpp"
#include "memory/CudaMemory.cuh"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment