RRZE-HPC / kerncraft

Loop Kernel Analysis and Performance Modeling Toolkit
GNU Affero General Public License v3.0
86 stars 24 forks source link

User-defined Initial Values for scalars and arrays #77

Closed cod3monk closed 6 years ago

cod3monk commented 6 years ago

Since all scalars and arrays are initialized with the same value (0.23), the following code will run faster than expected:

(U_op - y[j]) / R

since U_op - y[j] will be zero and the division will take less cycles to complete.

A solution would be, to make the initial values random or have the user define them.