Initial check-in of Acxxel (StreamExecutor renamed)
Summary:
Acxxel is basically a simplified redesign of StreamExecutor.
Here are the major points where Acxxel differs from the current
StreamExecutor design:
* Acxxel doesn't support the kernel and kernel loader types designed for
emission by the compiler to support type-safe kernel launches. For
CUDA, kernels in Acxxel can be seamlessly launched using the standard
CUDA triple-chevron kernel launch syntax that is available with clang
and nvcc. For CUDA and OpenCL, kernel arguments can be passed in the
old-fashioned way, as one array of pointers to arguments and another
array of argument sizes. Although OpenCL doesn't get a type-safe
kernel launch method, it does still get the benefit of all the memory
management wrappers. In the future, clang may add support for
triple-chevron OpenCL kernel launchs, or some other type-safe OpenCL
kernel launch method.
* Acxxel does not depend on any other code in LLVM, so it builds
completely independently from LLVM.
The goal will be to check in Acxxel and remove StreamExecutor, or
perhaps to remove the old StreamExecutor and rename Acxxel to
StreamExecutor, so I think Acxxel should be thought of as a new version
of StreamExecutor, not as a separate project.
Reviewers: jlebar, jprice
Subscribers: beanz, mgorny, modocache, parallel_libs-commits
Differential Revision: https://reviews.llvm.org/D25701
llvm-svn: 285111
2016-10-26 04:18:56 +08:00
|
|
|
add_executable(acxxel_test acxxel_test.cpp)
|
|
|
|
target_link_libraries(
|
|
|
|
acxxel_test
|
|
|
|
acxxel
|
|
|
|
${GTEST_BOTH_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
add_test(AcxxelTest acxxel_test)
|
|
|
|
|
|
|
|
add_executable(span_test span_test.cpp)
|
|
|
|
target_link_libraries(
|
|
|
|
span_test
|
|
|
|
${GTEST_BOTH_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
add_test(SpanTest span_test)
|
|
|
|
|
|
|
|
add_executable(status_test status_test.cpp)
|
|
|
|
target_link_libraries(
|
|
|
|
status_test
|
|
|
|
${GTEST_BOTH_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
add_test(StatusTest status_test)
|
|
|
|
|
|
|
|
if(ACXXEL_ENABLE_OPENCL)
|
|
|
|
add_executable(opencl_test opencl_test.cpp)
|
|
|
|
target_link_libraries(
|
|
|
|
opencl_test
|
|
|
|
acxxel
|
|
|
|
${GTEST_BOTH_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
add_test(OpenCLTest opencl_test)
|
|
|
|
endif()
|
2016-10-28 08:54:02 +08:00
|
|
|
|
|
|
|
if(ACXXEL_ENABLE_MULTI_DEVICE_UNIT_TESTS)
|
|
|
|
add_executable(multi_device_test multi_device_test.cpp)
|
|
|
|
target_link_libraries(
|
|
|
|
multi_device_test
|
|
|
|
acxxel
|
|
|
|
${GTEST_BOTH_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
add_test(MultiDeviceTest multi_device_test)
|
|
|
|
endif()
|