Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pass gtid to task routine even if it is in serial region.
  • Loading branch information
tskeith committed Jan 9, 2018
1 parent 0bf39c8 commit c472583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/flang2/flang2exe/outliner.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1454,7 +1454,7 @@ ll_make_outlined_task_call(int func_sptr, int task_sptr)
int altili, ilix;
int arg1, arg2, args[2] = {0};

arg1 = args[1] = ad_icon(0);
arg1 = args[1] = ll_get_gtid_val_ili();
arg2 = args[0] = ad2ili(IL_LDA, ad_acon(task_sptr, 0),
addnme(NT_VAR, task_sptr, 0, (INT)0));
ilix = ll_ad_outlined_func2(0, IL_JSR, func_sptr, 2, args);
Expand Down

0 comments on commit c472583

Please sign in to comment.