Skip to content

Commit

Permalink
Schedule so that GPU is assigned *before* thorn's storage is allocated.
Browse files Browse the repository at this point in the history
CaKernelSchedule:
 Schedule after CaCUDA_Startup rather than after Accelerator_SetDevice.
  • Loading branch information
dmkoppelman committed Jul 14, 2017
1 parent dd0c003 commit 14a5430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/CodeGen/CaKernel.m
Expand Up @@ -106,10 +106,10 @@
{
{
Name -> thornName <> "_Init",
SchedulePoint -> "in CCTK_BASEGRID after Accelerator_SetDevice",
SchedulePoint -> "in CCTK_BASEGRID after CaCUDA_Startup",
Language -> "C",
Options -> "local",
Comment -> "Initialize CUDA Device"
Comment -> "Allocate GPU storage"
}
}]

Expand Down

0 comments on commit 14a5430

Please sign in to comment.