Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching issues in frontend compilation / execution timing output #79

Open
HaoZeke opened this issue Apr 3, 2023 · 0 comments
Open

Caching issues in frontend compilation / execution timing output #79

HaoZeke opened this issue Apr 3, 2023 · 0 comments

Comments

@HaoZeke
Copy link

HaoZeke commented Apr 3, 2023

          Also, I observed the following:

Example:

program expr2
    implicit none

    integer :: x, cnt
    real :: y, z
    z = 2.5
    cnt = 0
   
    do x = 1, 1000000000
        y = z * z
        y = y * y
        cnt = cnt + 1
    end do

    do x = 1, 1000000
        y = z * y + y
        cnt = cnt + 1
    end do
    
    print *, x, cnt
end program

Ouptut:

1000000 1001000000

Compilation time: 11 ms
Execution time: 2070 ms

The execution time is as expected.

Now, if we press the run button again (without any change in the source code):
Output:

1000000 1001000000

Compilation time: 12 ms
Execution time: 369 ms

The execution time for further runs (without any change in the source code) comes to be around ~370 ms (which seems to be unexpected, I would expect it to be around atleast 1000ms). I guess that there is no actual execution taking place, and instead (since the source code is unchanged) values are being cached and displayed on the output. We need to see/investigate what is actually causing it.

On changing the source code, and then pressing the run button, the execution time seems to be as expected.

Originally posted by @Shaikh-Ubaid in #74 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant