File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 11#include "libblastrampoline_internal.h"
2+ #include "exported_funcs.inc"
23
34lbt_config_t lbt_config ;
45
@@ -20,6 +21,9 @@ LBT_DLLEXPORT const lbt_config_t * lbt_get_config() {
2021 lbt_config .build_flags |= LBT_BUILDFLAGS_F2C_CAPABLE ;
2122#endif
2223
24+ lbt_config .exported_symbols = (const char * * )& exported_func_names [0 ];
25+ lbt_config .num_exported_symbols = NUM_EXPORTED_FUNCS ;
26+
2327 return & lbt_config ;
2428}
2529
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ typedef struct {
6767 // Flags that describe this `libblastrampoline`'s build configuration.
6868 // See `LBT_BUILDFLAGS_XXX` below.
6969 uint32_t build_flags ;
70+ // The names of the symbols that we export. We do not list both `dgemm_` and `dgemm_64_`, just `dgemm_`.
71+ const char * * exported_symbols ;
72+ uint32_t num_exported_symbols ;
7073} lbt_config_t ;
7174
7275// Possible values for `build_flags` in `lbt_config_t`
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ const LBT_F2C_PLAIN = 0
9595struct lbt_config_t
9696 loaded_libs:: Ptr{Ptr{lbt_library_info_t}}
9797 build_flags:: UInt32
98+ exported_symbols:: Ptr{Cstring}
99+ num_exported_symbols:: UInt32
98100end
99101const LBT_BUILDFLAGS_F2C_CAPABLE = 0x02
100102
You can’t perform that action at this time.
0 commit comments