[hip] add initial implementation for hipLaunchCooperativeKernel API (#1339)

* [hip] add initial implementation for hipLaunchCooperativeKernel API

* [hip] use total number of work groups to initialize the GWS resource

* [hip] use only one argument for init_gws kernel

* [hip] use the device associated with the stream for checking the device properties


[ROCm/hip commit: 5066700ace]
このコミットが含まれているのは:
Aryan Salmanpour authored and Maneesh Gupta committed 2019-08-23 09:19:35 +00:00
1 親 4aa011eec6
コミット 0fc745b3a6
2ファイル変更
+98

検索条件に一致するファイルはありません

+4
ファイルの表示
@@ -59,6 +59,10 @@ extern "C" __device__ __attribute__((const)) float __ocml_trunc_f32(float);
extern "C" __device__ __attribute__((const)) float __ocml_fmin_f32(float, float);
extern "C" __device__ __attribute__((const)) float __ocml_fmax_f32(float, float);
extern "C" __device__ __attribute__((convergent)) void __ockl_gws_init(uint nwm1, uint rid);
extern "C" __device__ __attribute__((convergent)) void __ockl_gws_barrier(uint nwm1, uint rid);
// Introduce local address space
#define __local __attribute__((address_space(3)))