-
Notifications
You must be signed in to change notification settings - Fork 99
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
cpuGaugeField constructor segfault #78
Comments
I guess the first question should be: what is your use case here? Are you creating a host field in QUDA_QDP_GAUGE_ORDER and passing the pointer to the cpuGaugeField? Since this use case is what all the dslash and solver tests use, I'm surprised that this one is seg faulting. |
The seg fault arises in the constructor, which takes a reference to On 08/21/2012 05:19 PM, mikeaclark wrote:
|
I should also say that GaugeFieldParam::gauge is set to NULL. On 08/21/2012 05:19 PM, mikeaclark wrote:
|
That is why then. Creating a cpuGaugeField with QUDA_REFERENCE_CREATE doesn't allocate any memory, instead it just points the gauge pointer at the one specified by the param. This is to wrap QUDA metadata around a gauge field that has already been created by another application. What exactly are you trying to do here? |
Understood. I am trying to modify unitarize_link_test.cpp to work with the latest version Thanks. |
I see you've closed this, did you resolve the problem you were having? The packGhost always has forbidden MILC ordering that I am aware of, but this is something that can fixed fairly easily. I recently extented support for BQCD ordering, so this is fairly recently in my brain, so I can do this if you need it. |
Well, I figured that it's not really a bug. I'll push the changes I've On 08/22/2012 10:53 AM, mikeaclark wrote:
|
Trying to fix issue 76. Compiles fine now, but when I call the cpuGaugeField constructor using QUDA_REFERENCE_FIELD_CREATE + QUDA_QDP_GAUGE_ORDER, I get a seg fault. The same constructor with QUDA_REFERENCE_FIELD_CREATE + QUDA_MILC_GAUGE_ORDER works fine.
QUDA_ZERO_FIELD_CREATE + QUDA_QDP_GAUGE_ORDER is also okay.
The text was updated successfully, but these errors were encountered: