i am lost for words
a cudaEventRecord() immediately after a function call that contains the stream memory copy to be event-tagged, instantiates a segmentation fault, whereas the same cudaEventRecord() within the mentioned function, just after the mentioned memory copy, does not
the same cudaEvent_t event and cudaStream_t stream are at play in both cases; hence it can not be a case of the event or stream not being properly initialized or what ever
why is this…?
the function call, with the trailing cudaEventRecord():
the function declaration, with the within cudaEventRecord():
void nlp_pnt_jac_post_init_arr_setup(NLP_pnt_jac* nlp_pnt_jac, NLP_data* nlp_data,
cudaStream_t s0, cudaEvent_t trigger1);