see if it get to line UpdateTransformNotify(threadIndex, body);
Yes, I am getting there when I set a break point.
Moderators: Sascha Willems, walaber
see if it get to line UpdateTransformNotify(threadIndex, body);
cudaError_t cudaStatus = cudaMemcpyAsync(cpuInfo, gpuInfo, sizeof(cuSceneInfo), cudaMemcpyDeviceToHost, m_context->m_stream0);
dAssert(cudaStatus == cudaSuccess);
if (cudaStatus != cudaSuccess)
{
dAssert(0);
}
//CudaInitBodyArray << <blocksCount, D_THREADS_PER_BLOCK, 0, stream >> > (CalcuateBodyAabb, *infoGpu);
//CudaMergeAabb << <1, D_THREADS_PER_BLOCK, 0, stream >> > (ReducedAabb, *infoGpu);
//CudaCountAabb << <blocksCount, D_THREADS_PER_BLOCK, 0, stream >> > (CountAabb, *infoGpu);
//CudaPrefixScanSum0 << <blocksCount, D_THREADS_PER_BLOCK, 0, stream >> > (PrefixScanSum0, *infoGpu);
//CudaPrefixScanSum1 << <1, D_THREADS_PER_BLOCK, 0, stream >> > (PrefixScanSum1, *infoGpu);
//CudaGenerateGridHash << <blocksCount, D_THREADS_PER_BLOCK, 0, stream >> > (GenerateHashGrids, *infoGpu);
//CudaEndGridHash << <1, 1, 0, stream >> > (EndGridHash, *infoGpu);
//CudaSortGridHash (m_context);
}
omega(0.654416 -0.409420 -1.027692) rot(0.467492 0.718702 0.193209 0.477063)
omega(0.654416 -0.409420 -1.027692) rot(0.476125 0.712812 0.191755 0.477947)
omega(0.654416 -0.409420 -1.027692) rot(0.484717 0.706879 0.190225 0.478733)
omega(0.654416 -0.409420 -1.027692) rot(0.476125 0.712812 0.191755 0.477947)
omega(0.654416 -0.409420 -1.027692) rot(0.501776 0.694884 0.186942 0.480010)
omega(0.654416 -0.409420 -1.027692) rot(0.510240 0.688825 0.185190 0.480500)
printf("omega(%f %f %f) rot(%f %f %f %f)\n",
body->m_omega[0], body->m_omega[1], body->m_omega[2],
rotation[0], rotation[1], rotation[2], rotation[3]);
IntegrateVelocity: id(1) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateExternalForce: id(0) w(0.736507 0.335142 -0.895999) r(0.978725 0.096457 -0.110242 0.143666)
IntegrateExternalForce: id(1) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateVelocity: id(0) w(0.736507 0.335142 -0.895999) r(0.979360 0.093341 -0.111848 0.140115)
IntegrateVelocity: id(1) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
GetTransform: id(0) w(0.736507 0.335142 -0.895999) r(0.979360 0.093341 -0.111848 0.140115)
IntegrateExternalForce: id(0) w(0.738657 0.334356 -0.894186) r(0.979360 0.093341 -0.111848 0.140115)
IntegrateExternalForce: id(1) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateVelocity: id(0) w(0.738657 0.334356 -0.894186) r(0.979971 0.090230 -0.113445 0.136552)
IntegrateVelocity: id(1) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
GetTransform: id(0) w(0.482468 0.196393 -1.128870) r(0.763875 0.466181 0.091196 0.436868)
IntegrateExternalForce: id(0) w(0.484116 0.199775 -1.127159) r(0.763875 0.466181 0.091196 0.436868)
IntegrateVelocity: id(0) w(0.484116 0.199775 -1.127159) r(0.767011 0.462767 0.089447 0.435361)
IntegrateExternalForce: id(0) w(0.485790 0.203121 -1.125429) r(0.767011 0.462767 0.089447 0.435361)
IntegrateVelocity: id(0) w(0.485790 0.203121 -1.125429) r(0.770128 0.459352 0.087692 0.433831)
GetTransform: id(0) w(0.485790 0.203121 -1.125429) r(0.770128 0.459352 0.087692 0.433831)
IntegrateExternalForce: id(0) w(0.487488 0.206433 -1.123679) r(0.770128 0.459352 0.087692 0.433831)
IntegrateVelocity: id(0) w(0.487488 0.206433 -1.123679) r(0.773225 0.455935 0.085930 0.432276)
IntegrateExternalForce: id(0) w(0.489212 0.209709 -1.121911) r(0.773225 0.455935 0.085930 0.432276)
IntegrateVelocity: id(0) w(0.489212 0.209709 -1.121911) r(0.776302 0.452517 0.084162 0.430698)
GetTransform: id(0) w(0.489212 0.209709 -1.121911) r(0.776302 0.452517 0.084162 0.430698)
IntegrateExternalForce: id(0) w(0.490959 0.212949 -1.120124) r(0.776302 0.452517 0.084162 0.430698)
25.036558 DEBUG [9144 NewtonEngine.cpp->tick:36] TICK 93
IntegrateExternalForce: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateVelocity: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
GetTransform: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateExternalForce: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateVelocity: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateExternalForce: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateVelocity: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
GetTransform: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateExternalForce: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateVelocity: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateExternalForce: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
IntegrateVelocity: id(0) w(0.000000 0.000000 0.000000) r(0.000000 0.000000 0.000000 1.000000)
template<class T>
void cuDeviceBuffer<T>::ReadData(const T* const src, ndInt32 elements)
{
dAssert(elements <= m_size);
cudaMemcpy(m_array, src, sizeof (T) * elements, cudaMemcpyHostToDevice);
}
template<class T>
void cuDeviceBuffer<T>::ReadData(const T* const src, ndInt32 elements)
{
dAssert(elements <= m_size);
cudaMemcpy(m_array, src, sizeof (T) * elements, cudaMemcpyHostToDevice);
printf("ReadData: id(%d) w(%f %f %f) r(%f %f %f %f)\n", 0,
src[0].m_omega.x, src[0].m_omega.y, src[0].m_omega.z,
src[0].m_rotation.x, src[0].m_rotation.y, src[0].m_rotation.z, src[0].m_rotation.w);
}
Users browsing this forum: No registered users and 2 guests