mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-31 20:14:32 +00:00 
			
		
		
		
	First compiile on HiP
This commit is contained in:
		| @@ -32,7 +32,12 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk> | ||||
| */ | ||||
| //---------------------------------------------------------------------- | ||||
|  | ||||
| #ifdef GRID_CUDA | ||||
| #include <cuda_fp16.h> | ||||
| #endif | ||||
| #ifdef GRID_HIP | ||||
| #include <hip_fp16.h> | ||||
| #endif | ||||
|  | ||||
| namespace Grid { | ||||
|  | ||||
|   | ||||
| @@ -31,7 +31,7 @@ directory | ||||
| #ifndef GRID_SIMD_H | ||||
| #define GRID_SIMD_H | ||||
|  | ||||
| #ifdef GRID_CUDA | ||||
| #if defined(GRID_CUDA) || defined(GRID_HIP) | ||||
| #include <thrust/complex.h> | ||||
| #endif | ||||
|  | ||||
| @@ -65,7 +65,7 @@ typedef RealD   Real; | ||||
| typedef RealF  Real; | ||||
| #endif | ||||
|  | ||||
| #ifdef GRID_CUDA | ||||
| #if defined(GRID_CUDA) || defined(GRID_HIP) | ||||
| typedef thrust::complex<RealF> ComplexF; | ||||
| typedef thrust::complex<RealD> ComplexD; | ||||
| typedef thrust::complex<Real>  Complex; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user