Grain size

Grain size

I tried to change the grain size many times but I couldn't observe big changes in time . but some colleages told me that grain size should be propotional with file size is that true?

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

you have to determine that by experimenting... it has to depend on something file size
number of elements sizes of rows and columns
depends on how you implemented solution

Yes, the grain size depends on the size of the file because as the file size changes the size of computations performed by each thread will vary.Changing the grain size should be more visible when testing on large files..testing on small files doesn't show any big changes in time.

Leave a Comment

Please sign in to add a comment. Not a member? Join today