This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add flag for disabling the default generation of relocatable OpenMP target code for NVIDIA GPUs.
ClosedPublic

Authored by gtbercea on Feb 7 2017, 8:46 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

gtbercea created this revision.Feb 7 2017, 8:46 AM
gtbercea updated this revision to Diff 87463.Feb 7 2017, 8:56 AM

Additional test added to check "-c" is passed in appropriately.

gtbercea updated this revision to Diff 93240.Mar 28 2017, 7:38 AM

Update patch to reflect latest source code changes.

Having something with dashes behind other used prefixes (CHK-PTXAS, CHK-PTXAS-C, CHK-PTXAS-C-RELO) might not be optimal and break when other suffixes like -NOT or -SAME are added to lit. Please see inline about my suggestions but feel free to use others...

test/Driver/openmp-offload.c
606–607

CHK-PTXAS-DEFAULT (to be changed in D29642)

606–607

CHK-PTXAS-VERBOSE (to be changed in D29644)

611

CHK-PTXAS-NORELO

620

CHK-PTXAS-RELO

gtbercea updated this revision to Diff 93883.Apr 3 2017, 10:32 AM

Update test.

gtbercea marked 4 inline comments as done.Apr 3 2017, 10:33 AM
ABataev added inline comments.Apr 20 2017, 12:46 PM
lib/Driver/ToolChains/Cuda.cpp
300
  1. Add a comment with the name of the parameter for false argument
  2. Why not to use this logic:
Args.hasFlag(options::OPT_fopenmp_relocatable_target,
                    options::OPT_fnoopenmp_relocatable_target, true)

?

gtbercea updated this revision to Diff 96144.Apr 21 2017, 8:04 AM

Refactor if condition.

gtbercea marked an inline comment as done.Apr 21 2017, 8:05 AM
This revision is now accepted and ready to land.Apr 21 2017, 8:12 AM
gtbercea closed this revision.Aug 9 2017, 8:28 AM