Skip to content

Commit

Permalink
Revert "[Libomptarget] Add RPC-based printf implementation for Open…
Browse files Browse the repository at this point in the history
…MP (#85638)"

This reverts commit 2cf8118.

Failing tests, revert until I can fix it
  • Loading branch information
jhuber6 committed Apr 3, 2024
1 parent 01e2274 commit 943f39d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 54 deletions.
5 changes: 0 additions & 5 deletions openmp/libomptarget/DeviceRTL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ set(clang_opt_flags -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512
set(link_opt_flags -O3 -openmp-opt-disable -attributor-enable=module -vectorize-slp=false )
set(link_export_flag -passes=internalize -internalize-public-api-file=${source_directory}/exports)

# If the user built with the GPU C library enabled we will use that instead.
if(${LIBOMPTARGET_GPU_LIBC_SUPPORT})
list(APPEND clang_opt_flags -DOMPTARGET_HAS_LIBC)
endif()

# Prepend -I to each list element
set (LIBOMPTARGET_LLVM_INCLUDE_DIRS_DEVICERTL "${LIBOMPTARGET_LLVM_INCLUDE_DIRS}")
list(TRANSFORM LIBOMPTARGET_LLVM_INCLUDE_DIRS_DEVICERTL PREPEND "-I")
Expand Down
13 changes: 0 additions & 13 deletions openmp/libomptarget/DeviceRTL/src/LibC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,10 @@ void memset(void *dst, int C, size_t count) {
dstc[I] = C;
}

// If the user built with the GPU C library enabled we will assume that we can
// call it.
#ifdef OMPTARGET_HAS_LIBC

// TODO: Remove this handling once we have varargs support.
extern struct FILE *stdout;
int32_t rpc_fprintf(FILE *, const char *, void *, uint64_t);

int32_t __llvm_omp_vprintf(const char *Format, void *Arguments, uint32_t Size) {
return rpc_fprintf(stdout, Format, Arguments, Size);
}
#else
/// printf() calls are rewritten by CGGPUBuiltin to __llvm_omp_vprintf
int32_t __llvm_omp_vprintf(const char *Format, void *Arguments, uint32_t Size) {
return impl::omp_vprintf(Format, Arguments, Size);
}
#endif
}

#pragma omp end declare target
36 changes: 0 additions & 36 deletions openmp/libomptarget/test/libc/printf.c

This file was deleted.

0 comments on commit 943f39d

Please sign in to comment.