mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-01-08 10:27:49 +08:00
Update 7_libNVVM to enhance the .ll test file coping and installing
This commit is contained in:
parent
b8191f860a
commit
d759a16c4b
@ -39,5 +39,13 @@ set_tests_properties(test-cuda-shared-memory-shared_memory
|
||||
test-cuda-shared-memory-extern_shared_memory
|
||||
PROPERTIES FIXTURES_REQUIRED PTXGENTEST)
|
||||
|
||||
# Install the .ll files to the install/ folder
|
||||
install(FILES shared_memory.ll DESTINATION bin/cuda-shared-memory)
|
||||
install(FILES extern_shared_memory.ll DESTINATION bin/cuda-shared-memory)
|
||||
|
||||
file(COPY shared_memory.ll DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
file(COPY extern_shared_memory.ll DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
||||
# Copy the .ll files to the folder of executable file for full testing
|
||||
file(COPY shared_memory.ll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/../ptxgen/cuda-shared-memory)
|
||||
file(COPY extern_shared_memory.ll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/../ptxgen/cuda-shared-memory)
|
||||
|
||||
@ -49,6 +49,7 @@ else (WIN32)
|
||||
endif (WIN32)
|
||||
|
||||
install(TARGETS ptxgen DESTINATION bin)
|
||||
install(FILES test.ll DESTINATION bin)
|
||||
|
||||
add_custom_command(
|
||||
TARGET ptxgen
|
||||
|
||||
@ -36,5 +36,12 @@ add_test(NAME test-syscalls-vprintf
|
||||
set_tests_properties(test-syscalls-vprintf test-syscalls-malloc-free
|
||||
PROPERTIES FIXTURES_REQUIRED PTXGENTEST)
|
||||
|
||||
install(FILES malloc-free.ll DESTINATION bin/syscalls)
|
||||
install(FILES vprintf.ll DESTINATION bin/syscalls)
|
||||
|
||||
file(COPY malloc-free.ll DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
file(COPY vprintf.ll DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
||||
# Copy the .ll files to the folder of executable file for full testing
|
||||
file(COPY malloc-free.ll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/../ptxgen/syscalls)
|
||||
file(COPY vprintf.ll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/../ptxgen/syscalls)
|
||||
|
||||
@ -17,25 +17,25 @@
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"../cuda-shared-memory/shared_memory.ll"
|
||||
"cuda-shared-memory/shared_memory.ll"
|
||||
],
|
||||
"description": "cuda-shared-memory shared_memory test"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"../cuda-shared-memory/extern_shared_memory.ll"
|
||||
"cuda-shared-memory/extern_shared_memory.ll"
|
||||
],
|
||||
"description": "cuda-shared-memory extern_shared_memory test"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"../syscalls/malloc-free.ll"
|
||||
"syscalls/malloc-free.ll"
|
||||
],
|
||||
"description": "syscalls malloc-free test"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"../syscalls/vprintf.ll"
|
||||
"syscalls/vprintf.ll"
|
||||
],
|
||||
"description": "syscalls vprintf test"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user