File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,16 @@ void FeaturesHost::pin( )
103
103
if ( err != cudaSuccess ) {
104
104
cerr << __FILE__ << " :" << __LINE__ << " Runtime warning:" << endl
105
105
<< " Failed to register feature memory in CUDA." << endl
106
+ << " Features count: " << getFeatureCount () << endl
107
+ << " Memory size requested: " << getFeatureCount () * sizeof (Feature) << endl
106
108
<< " " << cudaGetErrorString (err) << endl;
107
109
}
108
110
err = cudaHostRegister ( _ori, getDescriptorCount () * sizeof (Descriptor), 0 );
109
111
if ( err != cudaSuccess ) {
110
112
cerr << __FILE__ << " :" << __LINE__ << " Runtime warning:" << endl
111
113
<< " Failed to register descriptor memory in CUDA." << endl
114
+ << " Descriptors count: " << getDescriptorCount () << endl
115
+ << " Memory size requested: " << getDescriptorCount () * sizeof (Descriptor) << endl
112
116
<< " " << cudaGetErrorString (err) << endl;
113
117
}
114
118
}
You can’t perform that action at this time.
0 commit comments