================ @@ -0,0 +1,53 @@ +//===-- Kenrels/Memory.cpp - Memory related kernel definitions ------------===// +// +// 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 <cstdint> + +#define LAUNCH_BOUNDS(MIN, MAX) \ + __attribute__((launch_bounds(MAX), amdgpu_flat_work_group_size(MIN, MAX))) +#define INLINE [[clang::always_inline]] inline +#define KERNEL [[gnu::weak]] __global__ ---------------- jdoerfert wrote:
memset is "just an example". I need this for the sanitizer. Currently, our OpenMP kernels are weak (right?), and I wouldn't know how to make these weak_odr anyway. Unsure what this has to do with nostdlibinc. https://github.com/llvm/llvm-project/pull/104168 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits