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 à :
@@ -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;
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur