Summary:
This variable is supposed to control the architectures to build for. At
some point this was changes out for testing and never fixed.
# The packaged version will be built for every target GPU architecture. We do
# this so we can support multiple accelerators on the same machine.
- foreach(gpu_arch ${all_gpu_architectures})
+ foreach(gpu_arch ${LIBC_GPU_ARCHITECTURES})
set(gpu_target_name ${fq_target_name}.${gpu_arch})
set(compile_options ${ADD_GPU_OBJ_COMPILE_OPTIONS})
# Derive the triple from the specified architecture.
set(LIBC_GPU_ARCHITECTURES ${all_gpu_architectures} FORCE)
endif()
message(STATUS "Building libc for the following GPU architectures: "
- "${all_gpu_architectures}")
+ "${LIBC_GPU_ARCHITECTURES}")
# Ensure the compiler is a valid clang when building the GPU target.
set(req_ver "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")