[libc] Add `LIBC_GPU_TEST_ARCHITECTURE` option to set architecture
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 6 Feb 2023 15:14:20 +0000 (09:14 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 6 Feb 2023 17:02:07 +0000 (11:02 -0600)
commitf8563a2545416df90e41b4345ccb81f9ca9b7835
treeacf6843fc018d420fbc324d7a2f4c3e3fe53b9d3
parent8537a7c91c55152534baae0735c8a7e466d489ac
[libc] Add `LIBC_GPU_TEST_ARCHITECTURE` option to set architecture

Currently, the plan is to support testing on a single GPU architecture.
We query the supported architectures from the user's system. However,
there are times when the user would want to override this. This patch
adds the `LIBC_GPU_TEST_ARCHITECTURE` option, which allows users to
specify which GPU architecture to build for.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D143400
libc/cmake/modules/prepare_libc_gpu_build.cmake