Skip to content

Commit

Permalink
Update Fortran examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-rowe committed Dec 11, 2023
1 parent 7f4906b commit 665526f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/fortran/01_add_vectors/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ program main
props)

! Copy memory to the device
call occaCopyPtrToMem(o_a, C_loc(a), entries*C_float, 0_occaUDim_t, occaDefault)
call occaCopyPtrToMem(o_a, C_loc(a), entries, 0_occaUDim_t, occaDefault)
call occaCopyPtrToMem(o_b, C_loc(b), occaAllBytes , 0_occaUDim_t, occaDefault)

! Launch device kernel
Expand Down
2 changes: 1 addition & 1 deletion examples/fortran/03_static_compilation/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ program main
props)

! Copy memory to the device
call occaCopyPtrToMem(o_a, C_loc(a), entries*C_float, 0_occaUDim_t, occaDefault)
call occaCopyPtrToMem(o_a, C_loc(a), entries, 0_occaUDim_t, occaDefault)
call occaCopyPtrToMem(o_b, C_loc(b), occaAllBytes , 0_occaUDim_t, occaDefault)

! Launch device kernel
Expand Down
2 changes: 1 addition & 1 deletion examples/fortran/09_streams/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ program main
occaDefault)

! Copy memory to the device
call occaCopyPtrToMem(o_a, C_loc(a), entries*C_float, 0_occaUDim_t, occaDefault)
call occaCopyPtrToMem(o_a, C_loc(a), entries, 0_occaUDim_t, occaDefault)
call occaCopyPtrToMem(o_b, C_loc(b), occaAllBytes , 0_occaUDim_t, occaDefault)

! Set stream and launch device kernel
Expand Down

0 comments on commit 665526f

Please sign in to comment.