-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build warnings in the Windows Meson build we should fix #120
Comments
Yeah, will look into it. |
With reference to this: https://github.com/rgommers/scipy/runs/5123938429?check_suite_focus=true
|
Okay, let's leave that one alone for now then. I think it is fixed in a more recent NumPy version already. At least we fixed one thread-related warning in |
This comes from the diff --git a/unuran/src/methods/mvtdr_init.h b/unuran/src/methods/mvtdr_init.h
index 333b693..42ca01e 100644
--- a/unuran/src/methods/mvtdr_init.h
+++ b/unuran/src/methods/mvtdr_init.h
@@ -1757,7 +1757,7 @@ _unur_mvtdr_etable_new( struct unur_gen *gen, int size )
GEN->etable_size = size;
/* make root */
- GEN->etable = malloc( size * sizeof(E_TABLE*) );
+ GEN->etable = malloc(_unur_min(size * sizeof(E_TABLE*), 9223372036854775807));
if (GEN->etable==NULL) {
_unur_error(gen->genid,UNUR_ERR_MALLOC,""); return UNUR_ERR_MALLOC; }
So, do I need to fix that here https://github.com/scipy/unuran.git? |
@Smit-create yes indeed, that is the place to make a change. That fix doesn't look correct though (using a hardcoded number like that is almost always a sign of trouble). The problem here seems to be that in this line: GEN->etable = malloc( size * sizeof(E_TABLE*) );
VERTEX *
_unur_mvtdr_etable_find_or_insert( struct unur_gen *gen, VERTEX **vidx )
...
E_TABLE *pet, *pet_last; /* table entry */
int idx[2]; /* store indices */
int hidx; /* hash number */
...
pet = malloc( sizeof(E_TABLE) ); However, that's the wrong typedef struct s_edge_table /* -- hash table for edges --------------- */
{
int index[2]; /* index of incident vertices */
VERTEX *vertex; /* index of corresponding vertex (=barycenter) */
struct s_edge_table *next; /* next entry in list */
} E_TABLE; The code seems to rely on both of these files being included in the correct order in I'm guessing the fix is to use Cc @tirthasheshpatel, in case this code is familiar to you. |
Looks like we've fixed what needs fixing for now (modulo some discussion on the interpolative warnings PR). There's some warnings left, TBD later whether they need silencing. I'll close this. |
@Smit-create here are all the relevant build warnings from today's Windows build against numpy 1.21.5. Could you look into these?
The above one also happens in
dStackCompress
and thes
/z
variants.Many warnings like:
These rank mismatch warnings should be silenced by using
-fallow-argument-mismatch
, see theTODO
comment in the top-levelmeson.build
.Also recording this one, but needs someone who speaks Fortran:
Not sure what the deal is with this one:
Let's prioritize this one, since currently
linprog
(which uses HiGHS) is segfaulting:The text was updated successfully, but these errors were encountered: