Added NVCC support and name changes

- Added NVCC support for module APIs
- Changed hipFunction and hipModule data types to hipFunction_t and hipModule_t
- Created new intenal ihipModuleGetFunction as it is used twice
- Changed test to match with the new data types

Change-Id: I300a1c7fd40ed7065b1b8b9de97e3a06b96ed729
Cette révision appartient à :
Aditya Atluri
2016-08-26 10:32:01 -05:00
Parent 1211cc931c
révision 8b918b065a
4 fichiers modifiés avec 55 ajouts et 21 suppressions
+2 -5
Voir le fichier
@@ -21,9 +21,6 @@ THE SOFTWARE.
#include<hip_runtime_api.h>
#include<iostream>
#include<fstream>
#include<hsa/hsa.h>
#include<hsa/amd_hsa_kernel_code.h>
#include<hsa/hsa_ven_amd_loader.h>
#include<vector>
#define LEN 64
@@ -53,8 +50,8 @@ int main(){
hipMemcpy(Ad, A, SIZE, hipMemcpyHostToDevice);
hipMemcpy(Bd, B, SIZE, hipMemcpyHostToDevice);
hipModule Module;
hipFunction Function;
hipModule_t Module;
hipFunction_t Function;
hipModuleLoad(&Module, fileName);
hipModuleGetFunction(&Function, Module, kernel_name);
hipStream_t stream;