Cuda Solver

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: Cuda Solver

Postby Bird » Sun Aug 07, 2022 5:52 pm

Amazing. Maybe they're short staffed because they're having a hard time making a profit these days. :D
Bird
 
Posts: 623
Joined: Tue Nov 22, 2011 1:27 am

Re: Cuda Solver

Postby Julio Jerez » Mon Aug 08, 2022 1:26 pm

it worked much better, so that's good.
It is still very difficult to get accurate timing across kernel calls, since the driver can preempt the sequence of summited kernels. is if foe example you
take the time at the beginning, them you issue few kernels, them to take the time at the end.
what happen is the somewhere in the middle of issuing the kernels, the driver stop to do the rendering,
so what you get is the sampling that happened between the two calls, and that can have a whole bunch of other stuff.
but at least it is consistent, because the measurement is a actual clock, and no the nonsense give but the functions.

I guess one only way to get a accurate measurement is to measure in every stream 0 kernel call and add the deltas together.
but that's could also be a futile, because it assume no preemption in the middle of a kernel call, which I believe the the latest hardware can do now. So I will not spend time on that, to find out at the end that it may or may not be any better.

no sure why the did not wrapped that into an intrinsic function instead of wrapping a useless call liek clock 64 to give the core ticks. at least wrapping the both .
but anyway, at least that's one problem less.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 40 guests