نمودار کامیت

30 کامیت‌ها

مولف SHA1 پیام تاریخ
Evgeny Mankov 67de23d6b9 [HIPIFY] CUDA Driver API porting to HIP : Init and Memory functions support. 2016-09-13 15:11:21 +03:00
Evgeny Mankov 9145df8b63 [HIPIFY] CUDA Driver API porting to HIP : Stream functions support. 2016-09-09 11:46:35 +03:00
Evgeny Mankov bc28c37654 [HIPIFY] CUDA Driver API porting to HIP : Module functions support. 2016-09-09 11:31:50 +03:00
Evgeny Mankov 84f8d97ba5 [HIPIFY] CUDA Driver API porting to HIP : Event functions support. 2016-09-09 11:15:11 +03:00
Evgeny Mankov 3cbd5d88fe [HIPIFY] CUDA Driver API porting to HIP : Conversion type Driver and driver functions are added. 2016-09-09 11:10:19 +03:00
Evgeny Mankov 5e0323d6c0 [HIPIFY] CUDA Driver API porting to HIP : Conversion types Context and Cache are added. 2016-09-05 20:26:21 +03:00
Evgeny Mankov 2a1c84b4f9 [HIPIFY] CUDA Driver API porting to HIP : Device functions support. 2016-09-05 18:05:16 +03:00
Evgeny Mankov 53de91dd59 [HIPIFY] CUDA Driver API porting to HIP : Context functions support. 2016-09-05 13:15:49 +03:00
Evgeny Mankov 8bc7aba719 [HIPIFY] CUDA Driver API porting to HIP : populate Replacer's rules with enum members.
enum members for:
CUdevice_attribute/hipDeviceAttribute_t
CUfunc_cache/hipFuncCache
CUsharedconfig/hipSharedMemConfig
2016-09-02 22:23:13 +03:00
Evgeny Mankov f7818c4c44 [HIPIFY] CUDA Driver API porting to HIP : types are added.
CUdevice           -> hipDevice_t // Yet under discussion
CUdevice_attribute -> hipDeviceAttribute_t
CUdevprop          -> hipDeviceProp_t
CUfunction         -> hipFunction_t
CUfunc_cache       -> hipFuncCache
CUsharedconfig     -> hipSharedMemConfig
CUcontext          -> hipCtx_t
CUmodule           -> hipModule_t
CUevent            -> hipEvent_t
CUstream           -> hipStream_t
2016-09-02 16:31:46 +03:00
Evgeny Mankov 43998387aa [HIPIFY] CUDA Driver API porting to HIP : CUresult enum.
enum CUresult was merged with enum cudaError_t into single hipError_t.

Thus a majority of HIP error codes has a reflection to Driver's and RT's corresponding error code at the same time. For instance:
    cuda2hipRename["CUDA_SUCCESS"]                         = {"hipSuccess", CONV_ERR, API_DRIVER};
    cuda2hipRename["cudaSuccess"]                          = {"hipSuccess", CONV_ERR, API_RUNTIME};

There are a few CUDA return error codes which are RT or Driver specific. For instance:
    cuda2hipRename["CUDA_ERROR_INVALID_CONTEXT"]           = {"hipErrorInvalidContext", CONV_ERR, API_DRIVER};

    cuda2hipRename["cudaErrorInvalidMemcpyDirection"]      = {"hipErrorInvalidMemcpyDirection", CONV_ERR, API_RUNTIME};

Matchers were changed from "cuda.* | cublas.*" to "cu.*" as CUDA API functions/types starts with 'cu'.
2016-09-01 18:54:03 +03:00
Evgeny Mankov 36d212c81e clang-hipify: code refactoring - API (Driver/Runtime/Blas) distinguishing is added. 2016-08-25 19:36:37 +03:00
Evgeny Mankov 0f4974dbcb clang-hipify: code refactoring and performance improvement 2016-08-24 18:51:36 +03:00
Evgeny Mankov 807a6a9ac4 clang-hipify: After translating any symbol forcibly include the hip header file in case it wasn’t.
Fixes https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/issues/34
2016-08-18 20:59:51 +03:00
Evgeny Mankov 2aacb02358 clang-hipify: Add support for nested macro expansion and translation.
Fixes bug “HIPIFY: nested macro is not hipified”
https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/issues/33

Example:
#include "cuda_runtime.h"
#define MY_MACRO(func, flags) (func, flags)
...
cudaEvent_t *event = NULL;
MY_MACRO(cudaEventCreateWithFlags(event, cudaEventDisableTiming), NULL);

where cudaEventDisableTiming is a defined numeric literal and thus a nested MACRO:
#define cudaEventDisableTiming 0x02 /**< Event will not record timing data */

After hipifying now:
MY_MACRO(hipEventCreateWithFlags(event, cudaEventDisableTiming), NULL);

Should be:
MY_MACRO(hipEventCreateWithFlags(event, hipEventDisableTiming), NULL);
2016-08-11 22:29:55 +03:00
Evgeny Mankov 114d5bfddf clang-hipify: Transformation of declarations with external linkage and shared attribute for IncompleteArrayType (aka C array[]) only.
Example:
extern __shared__ uint sRadix1[]; =>  HIP_DYNAMIC_SHARED(unsigned int, sRadix1);
2016-08-05 21:35:58 +03:00
Maneesh Gupta 90a3e4e1da Documentation updates
Change-Id: Ia624d86915c4c96da0ac0242f767135f30ff73c6
2016-07-25 14:53:15 +05:30
Evgeny Mankov 19a6f1486a clang-hipify: Populate replacement rules and fix typos.
+ fix typo in hipStreamWaitEvent.
+ hipHostAlloc -> hipHostMalloc.
+ Memory Types, Pointer Attributes are added.
+ Event, Host Malloc and Register, Device and Stream Flags are added.
+ exclude cudacommon.h.prehip from includes' replacement rules.
2016-07-07 18:01:41 +03:00
Evgeny Mankov fd1e556cf2 clang-hipify: add Replacement Excludes
Excludes are not replaced, for instance, CHECK_CUDA_ERROR and CUDA_SAFE_CALL.
Add check for excludes in MacroExpands and CallExpr routines.
2016-07-01 19:58:14 +03:00
Evgeny Mankov 2eac7144f0 clang-hipify: fix typos and populate replacement rules
+ typos in cudaDeviceAttr and cudaDeviceAttr
+ Device Attribules are added
+ More error codes are added
2016-06-29 20:32:05 +03:00
Evgeny Mankov e1785a8b9f clang-hipify: Array of elements of typedef type translation support.
Example: cudaStream_t streams[2]
2016-06-28 19:57:08 +03:00
Evgeny Mankov 8f9bdf641f cublas to hipblas translation support in clang-hipify
+ CUBLAS V2 functions support
+ annotating, formatting
2016-06-28 15:33:38 +03:00
Evgeny Mankov 8cbc2f3f44 Initial cublas to hipblas translation support in clang-hipify.
To run clang-hipify with hipblas support please specify corresponding hipblas include directory, for example:

./hipify-clang --print-stats matrixMult.cpp.cuda -- -I/srv/git/HIP/HIP-Examples/hipblas/include

Additionally:
+ typedef translation support is added (cudaEvent_t and cudaStream_t are converted now).
+ anonymous typedef enum translation support.
+ function name macro expansion support.
+ clang options propagation is restored.
P.S. In order to avoid the following error message:
“Could not auto-detect compilation database for file "… .cu"
No compilation database found in /srv/git/HIP/build/clang-hipify or any parent directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.”
please append “--“ to the end of clang-hipify’s command line.
2016-06-22 19:15:03 +03:00
Maneesh Gupta dd8c97c0d4 Move hipify-clang info to its own README
Squashed commit of the following:

commit bc44bcee461e46b0cf5cb9fe09213dca450b081a
Author: Daniil Fukalov <daniil.fukalov@amd.com>
Date:   Mon May 16 20:50:05 2016 +0300

    added note about errors without CUDA sdk installed

commit 5fd73ba90c0940bdc977737894362a99f4232b56
Author: Daniil Fukalov <daniil.fukalov@amd.com>
Date:   Mon May 16 20:31:47 2016 +0300

    move clang-hipify info to its own README

commit 21d81a6d5acd3f093d77ac4d584e6f5bbe48f8cc
Author: Daniil Fukalov <daniil.fukalov@amd.com>
Date:   Mon May 16 20:30:00 2016 +0300

    initial version

Change-Id: I157294699a7be3d0bb38b2ee4a137a94280529c9
2016-05-24 12:45:25 +05:30
Maneesh Gupta 99dc8abf68 Fix missing JSON database warning from hipify-clang
Change-Id: I4aeff51556678266c1392a031deeb9ffff2386bc
2016-05-20 14:06:27 +05:30
Maneesh Gupta 5d3bb83854 Handle missing LLVM package dependency for clang hipify 2016-05-04 14:47:26 +05:30
alex-t c84fdef9d3 Fixed incorrect kernel paramlist replacement length & hipGetDeviceProperties mapping 2016-04-14 13:48:58 +03:00
Daniil Fukalov d12aaee30e Delete README.md 2016-04-07 00:37:20 +03:00
dfukalov f9cf240f7a moved clang-hipify tests to common folder "tests", updated cmake files to use downloadable clang+llvm binary package 2016-04-06 20:44:19 +03:00
dfukalov 8115896010 Imported clang-hipify as a subtree 2016-04-04 23:18:15 +03:00