Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tile_processor_gpu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
tile_processor_gpu
Commits
3c5e4a1e
Commit
3c5e4a1e
authored
Feb 27, 2022
by
Palani Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake working
parent
aedc76c3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
194 additions
and
152 deletions
+194
-152
CMakeLists.txt
CMakeLists.txt
+41
-0
test_tp.cu
src/test_tp.cu
+153
-152
No files found.
CMakeLists.txt
0 → 100644
View file @
3c5e4a1e
cmake_minimum_required
(
VERSION 3.22 FATAL_ERROR
)
project
(
tile-processor-gpu LANGUAGES CUDA CXX
)
# get submodules
find_package
(
Git QUIET
)
if
(
GIT_FOUND AND EXISTS
"
${
PROJECT_SOURCE_DIR
}
/.git"
)
option
(
GIT_SUBMODULE
"Check submodules during build"
ON
)
if
(
GIT_SUBMODULE
)
message
(
STATUS
"Submodule update"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update --init --recursive
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
RESULT_VARIABLE GIT_SUBMOD_RESULT
)
if
(
NOT GIT_SUBMOD_RESULT EQUAL
"0"
)
message
(
FATAL_ERROR
"git submodule update --init --recursive failed with
${
GIT_SUBMOD_RESULT
}
, please checkout submodules"
)
endif
()
endif
()
endif
()
if
(
NOT EXISTS
"
${
PROJECT_SOURCE_DIR
}
/external/cuda-samples/README.md"
)
message
(
FATAL_ERROR
"The submodule cuda-samples was not downloaded! GIT_SUBMODULE was turned off or failed. Please update submodules and try again."
)
endif
()
# create the executable
add_executable
(
${
PROJECT_NAME
}
src/test_tp.cu
src/dtt8x8.cu
src/dtt8x8.h
src/geometry_correction.cu
src/geometry_correction.h
src/test_tp.cu
src/TileProcessor.cuh
src/TileProcessor.h
src/tp_defines.h
)
include_directories
(
external/cuda-samples/Common
)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES CUDA_SEPARABLE_COMPILATION ON
)
src/test_tp.cu
View file @
3c5e4a1e
This diff is collapsed.
Click to expand it.
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