Round() slow down calculations
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: Round() slow down calculations
It is necessary to use an external program running on the GPU. It can be written in C#. It turns out that the calculations are accelerated about 4000 times on the NVIDIA 770
Re: Round() slow down calculations
Chris, thats interesting and it works
, I am surprised , also time with int is better than with round.
With round() test cycle running for example 3.80 seconds, and with int(number+0.5) 2.09 !
You are a genius , thanks very much.
Eugene, yes, using GPU will be very nice , but I do not know how do it. many of the functions I have in the program would work faster (for example, processing text files, converting code page etc.)

With round() test cycle running for example 3.80 seconds, and with int(number+0.5) 2.09 !
You are a genius , thanks very much.
Eugene, yes, using GPU will be very nice , but I do not know how do it. many of the functions I have in the program would work faster (for example, processing text files, converting code page etc.)