[libc-commits] [libc] [libc] Implement temporary `printf` on the GPU (PR #85331)
Matt Arsenault via libc-commits
libc-commits at lists.llvm.org
Thu Mar 14 23:49:10 PDT 2024
================
@@ -0,0 +1,58 @@
+//===-- RPC test to check args to printf ----------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "test/IntegrationTest/test.h"
+
+#include "src/__support/GPU/utils.h"
+#include "src/gpu/rpc_fprintf.h"
+#include "src/stdio/fopen.h"
+
+using namespace LIBC_NAMESPACE;
+
+FILE *file = LIBC_NAMESPACE::fopen("testdata/test_data.txt", "w");
----------------
arsenm wrote:
Why bother doing this in a static constructor
https://github.com/llvm/llvm-project/pull/85331
More information about the libc-commits
mailing list