Add __device__ to needful functions for promote-free.

[ROCm/hip commit: 29232ff283]
Этот коммит содержится в:
Ben Sander
2017-03-17 11:19:48 -05:00
родитель a9ec705ee4
Коммит 8d5c39fd52
5 изменённых файлов: 8 добавлений и 7 удалений
+2 -2
Просмотреть файл
@@ -34,8 +34,8 @@ THE SOFTWARE.
This is the best place to put them because the device
global variables need to be initialized at the start.
*/
ADDRESS_SPACE_1 char gpuHeap[SIZE_OF_HEAP];
ADDRESS_SPACE_1 uint32_t gpuFlags[NUM_PAGES];
__device__ ADDRESS_SPACE_1 char gpuHeap[SIZE_OF_HEAP];
__device__ ADDRESS_SPACE_1 uint32_t gpuFlags[NUM_PAGES];
__device__ void *__hip_hc_malloc(size_t size)
{