Skip to content

Conversation

marthaisabelhilton
Copy link
Collaborator

Dear GooFit experts,
I am trying to add a K Matrix Resonance.
This compiles but gives the following error when trying to do getCompProbsAtDataPoints:
terminate called after throwing an instance of 'thrust::system::system_error'
what(): function_attributes(): after cudaFuncGetAttributes: an illegal memory access was encountered
Aborted
I have attached a minimal working example in which I try to add my K Matrix resonance to an Amp3BodyPdf and do getCompProbsAtDataPoints.
Could someone please have a look?
Many thanks,
Martha
kMatrix_test.py.txt

@henryiii
Copy link
Member

henryiii commented Feb 7, 2020

All the kMatrix bits need to be protected by the ifdefs for now.

martha and others added 4 commits February 7, 2020 15:58
Initial commit kMatrix header file.

Initial commit kMatrix source code.

Added kMatrix.

Add kMatrix to python binding.

Removed FormFac and radius from arguments.

Removed FormFac and radius from arguments.

Removed FormFac and radius from arguments.

Multiply by complex amplitude.

Add kMatrix resonance to CMakeLists.

Correct include, missmatched parenthesis and arguments of ResonancePdf.

Add kMatrix functions to Resonance.h.

Removed kMAtrix device functions.

Add kMatrix device functions to Resonance.cu.

Removed kMatrix device functions.

Define NCHANNELS.

Add some includes.

Rename function.

Remove amplitude.

Change name of amplitude.

Added get_amp_real/img to phython bindings.

Change name of amplitude, remove initialize.

Added getName to PdfBase python binding.

Added getBinSize to python binding.

Changed arguments to kMatrixRes fucntion and Mpair->mPiPlus.

Added hasAnalyticIntegral to python binding.

Moved functions to public.

Added to python binding.

Added metricIsPdf to python binsings.

Add abort.

Add Abort.cpp.

Added {}.

Initial commit Abort python binding.

Added normalize to python binding.

Add getFunctionIndex to python bindings.

Remove mass and width parameters.

Remove mass and width parameters from kMatrix.

Remove mass and width parameters.

Fix pmasses^2.

Added getBinSize to python binding. (#204)

Add getName to PdfBase python binding. (#208)
@henryiii henryiii changed the title WIP: K Matrix Resonance K Matrix Resonance Feb 8, 2020
@henryiii
Copy link
Member

henryiii commented Feb 8, 2020

Let's get this in, then we will work on fixing the non-compile related problem. Since you can turn off the kMatrix code, it shouldn't hurt anything and we can move forward.

@henryiii henryiii merged commit 7c6bcc6 into master Feb 8, 2020
@henryiii henryiii deleted the mhilton_kmatrix branch February 8, 2020 04:22
@henryiii henryiii mentioned this pull request Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants