Skip to content

Commit

Permalink
Update ParseDeviceParam definition
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshugoel2797 committed Jan 4, 2024
1 parent 5ecedf4 commit 44cce08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/clients/python/srwlpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3327,15 +3327,15 @@ void ParseSructSmpObj3D(double**& arObjShapeDefs, int& nObj3D, PyObject* oListSh
/************************************************************************//**
* Convert Python device specification to C++ structure.
***************************************************************************/
void ParseDeviceParam(PyObject* oDev, gpuUsageArg *pGpuUsage) //HG10202021 Convert Python device specification to C++ structure
void ParseDeviceParam(PyObject* oDev, TGPUUsageArg* pGpu) //HG10202021 Convert Python device specification to C++ structure
{
if (oDev != 0) {
if (PyLong_Check(oDev)) {
pGpuUsage->deviceIndex = _PyLong_AsInt(oDev);
pGpu->deviceIndex = _PyLong_AsInt(oDev);
return;
}
}
pGpuUsage->deviceIndex = 0;
pGpu->deviceIndex = 0;
}
#endif

Expand Down

0 comments on commit 44cce08

Please sign in to comment.