Skip to content

Commit

Permalink
update new hip header path, and fix some incorrect file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sunway513 committed Nov 9, 2016
1 parent e5a48e1 commit 420f868
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
Empty file modified README.md
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions lhiputil.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#define _HIPUTIL_H_

#include <stdio.h>
#include <hip_runtime.h>
#include <hip_runtime_api.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>

#define CUDA_SAFE_CALL( call) { \
hipError_t err = call; \
Expand Down
4 changes: 2 additions & 2 deletions main-hip-ro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <stdio.h>
#include <stdlib.h>
#include <hip_runtime.h>
#include <hip/hip_runtime.h>
#include <string.h>
#include "lhiputil.h"
#include "mix_kernels_hip.h"
Expand All @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
hipMemGetInfo(&freeCUDAMem, &totalCUDAMem);
printf("Total GPU memory %lu, free %lu\n", totalCUDAMem, freeCUDAMem);
printf("Buffer size: %dMB\n", datasize/(1024*1024));

double *c;
c = (double*)malloc(datasize);
init_vector(c, VECTOR_SIZE);
Expand Down
4 changes: 2 additions & 2 deletions main-hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <stdio.h>
#include <stdlib.h>
#include <hip_runtime.h>
#include <hip/hip_runtime.h>
#include <string.h>
#include "lhiputil.h"
#include "mix_kernels_hip.h"
Expand All @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
hipMemGetInfo(&freeCUDAMem, &totalCUDAMem);
printf("Total GPU memory %lu, free %lu\n", totalCUDAMem, freeCUDAMem);
printf("Buffer size: %dMB\n", datasize/(1024*1024));

double *c;
c = (double*)malloc(datasize);
init_vector(c, VECTOR_SIZE);
Expand Down
Empty file modified mix_kernels_cuda_ro.cu
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion mix_kernels_hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Contact: Elias Konstantinidis <[email protected]>
**/

#include "hip_runtime.h"
#include "hip/hip_runtime.h"
#include <stdio.h>

#ifdef __CUDACC__
Expand Down
2 changes: 1 addition & 1 deletion mix_kernels_hip_ro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Contact: Elias Konstantinidis <[email protected]>
**/

#include "hip_runtime.h"
#include "hip/hip_runtime.h"
#include <stdio.h>
#ifdef __CUDACC__
#include <math_constants.h>
Expand Down
Empty file modified mix_kernels_ocl_ro.cpp
100755 → 100644
Empty file.
Empty file modified mix_kernels_ocl_ro.h
100755 → 100644
Empty file.
Empty file modified mix_kernels_ro.cl
100755 → 100644
Empty file.

0 comments on commit 420f868

Please sign in to comment.