From ec3c6c4dda5e97a5cb114f5e4ca549ddd76ee91e Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Fri, 20 Apr 2018 22:43:58 +0530 Subject: [PATCH] Added deprecation note in cuCtx section [ROCm/clr commit: a68b9b6bf6d132152b2bb17401cb492c5bb32640] --- projects/clr/hipamd/docs/markdown/hip_porting_driver_api.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/docs/markdown/hip_porting_driver_api.md b/projects/clr/hipamd/docs/markdown/hip_porting_driver_api.md index 47cb7fb009..e0489d5c16 100644 --- a/projects/clr/hipamd/docs/markdown/hip_porting_driver_api.md +++ b/projects/clr/hipamd/docs/markdown/hip_porting_driver_api.md @@ -39,7 +39,8 @@ HIP as well as a recent versions of CUDA Runtime provide other mechanisms to acc The CUDA Runtime API unifies the Context API with the Device API. This simplifies the APIs and has little loss of functionality since each Context can contain a single device, and the benefits of multiple contexts has been replaced with other interfaces. HIP provides a context API to facilitate easy porting from existing Driver codes. In HIP, the Ctx functions largely provide an alternate syntax for changing the active device. -Most new applications will prefer to use `hipSetDevice` or the stream APIs. + +Most new applications will prefer to use `hipSetDevice` or the stream APIs , therefore HIP has marked hipCtx APIs as **deprecated**. Support for these APIs may not be available in future releases. For more details on deprecated APIs please refer [HIP deprecated APIs](https://github.com/ROCm-Developer-Tools/HIP/tree/master/docs/markdown/hip_deprecated_api_list.md). ## HIP Module and Ctx APIs