Skip to content

Commit

Permalink
Update libomp generated headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryAndric committed Feb 9, 2024
1 parent 98d0e7c commit b051bbb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/libomp/kmp_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
# define CACHE_LINE 128
#elif KMP_ARCH_AARCH64_A64FX
# define CACHE_LINE 256
#elif KMP_ARCH_S390X
# define CACHE_LINE 256
#else
# define CACHE_LINE 64
#endif
Expand Down
6 changes: 4 additions & 2 deletions lib/libomp/kmp_i18n_default.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Do not edit this file! //
// The file was generated from en_US.txt by message-converter.pl on Sun Sep 3 00:38:26 2023. //
// The file was generated from en_US.txt by message-converter.pl on Sun Dec 17 22:59:54 2023. //

static char const *
__kmp_i18n_default_meta[] =
Expand Down Expand Up @@ -415,6 +415,8 @@ __kmp_i18n_default_messages[] =
"KMP_HW_SUBSET ignored: Too many attributes specified. This machine is not a hybrid architecutre.",
"KMP_HW_SUBSET: ignoring %1$s attribute. This machine is not a hybrid architecutre.",
"Target memory not available, will use default allocator.",
"%1$s ignored: This machine is not a hybrid architecutre. Using \"%2$s\" instead.",
"%1$s ignored: %2$s is not available. Using \"%3$s\" instead.",
NULL
};

Expand Down Expand Up @@ -467,7 +469,7 @@ __kmp_i18n_sections[] =
{ 5, __kmp_i18n_default_meta },
{ 79, __kmp_i18n_default_strings },
{ 6, __kmp_i18n_default_formats },
{ 299, __kmp_i18n_default_messages },
{ 301, __kmp_i18n_default_messages },
{ 29, __kmp_i18n_default_hints },
{ 0, NULL }
};
Expand Down
4 changes: 3 additions & 1 deletion lib/libomp/kmp_i18n_id.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Do not edit this file! //
// The file was generated from en_US.txt by message-converter.pl on Sun Sep 3 00:38:26 2023. //
// The file was generated from en_US.txt by message-converter.pl on Sun Dec 17 22:59:54 2023. //

enum kmp_i18n_id {

Expand Down Expand Up @@ -409,6 +409,8 @@ enum kmp_i18n_id {
kmp_i18n_msg_AffHWSubsetAttrsNonHybrid,
kmp_i18n_msg_AffHWSubsetIgnoringAttr,
kmp_i18n_msg_TargetMemNotAvailable,
kmp_i18n_msg_AffIgnoringNonHybrid,
kmp_i18n_msg_AffIgnoringNotAvailable,
kmp_i18n_msg_last,

// Set #5, hints.
Expand Down
8 changes: 7 additions & 1 deletion lib/libomp/omp.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef __OMP_H
# define __OMP_H

# include <stddef.h>
# include <stdlib.h>
# include <stdint.h>

Expand Down Expand Up @@ -236,6 +237,11 @@
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect_async(void *, const void *, size_t, int, const size_t *,
const size_t *, const size_t *, const size_t *, const size_t *, int, int,
int, omp_depend_t *);

/* OpenMP 6.0 device memory routines */
extern void * __KAI_KMPC_CONVENTION omp_target_memset(void *, int, size_t, int);
extern void * __KAI_KMPC_CONVENTION omp_target_memset_async(void *, int, size_t, int, int, omp_depend_t *);

/*!
* The `omp_get_mapped_ptr` routine returns the device pointer that is associated with a host pointer for a given device.
*/
Expand Down Expand Up @@ -497,7 +503,7 @@
extern int __KAI_KMPC_CONVENTION omp_in_explicit_task(void);

/* LLVM Extensions */
extern void *llvm_omp_target_dynamic_shared_alloc();
extern void *llvm_omp_target_dynamic_shared_alloc(void);

# undef __KAI_KMPC_CONVENTION
# undef __KMP_IMP
Expand Down

0 comments on commit b051bbb

Please sign in to comment.