| commit | 68f5ca4e19c16f12895a6f0b9fbabc1d86c4b6b0 | [log] [tgz] |
|---|---|---|
| author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | Tue Oct 22 13:41:25 2019 -0400 |
| committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | Tue Oct 22 16:06:20 2019 -0400 |
| tree | dbbbee3f58bc3c4434dc32b519e06156d94c59a9 | |
| parent | 4334892e7b077feac3124b789733dbec3380db4c [diff] |
[HIP] Add option -fgpu-allow-device-init Add this option to allow device side class type global variables with non-trivial ctor/dtor. device side init/fini functions will be emitted, which will be executed by HIP runtime when the fat binary is loaded/unloaded. This feature is to facilitate implementation of device side sanitizer which requires global vars with non-trival ctors. By default this option is disabled. Differential Revision: https://reviews.llvm.org/D69268