-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMake configuration to tests folder
- Loading branch information
1 parent
f98f6ed
commit e201ce9
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# vector_add | ||
add_subdirectory(vector_add) | ||
|
||
add_custom_target(test | ||
COMMAND vector_add/vector_add | ||
DEPENDS vector_add | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
file(COPY vector_add_kernel.cu DESTINATION ../..) | ||
# Copies the kernel function to the tests folder | ||
file(COPY vector_add_kernel.cu DESTINATION ..) | ||
add_executable(vector_add vector_add.cpp) | ||
target_link_libraries(vector_add PRIVATE cudawrappers CUDA::cuda_driver CUDA::nvrtc) |