isce3 0.25.0
Loading...
Searching...
No Matches
cudaUtil.h File Reference

Various cuda related parameters and utilities. More...

#include <cuda_runtime.h>
#include "cudaError.h"

Go to the source code of this file.

Macros

#define NRANK   2
 
#define NTHREADS   512
 
#define NTHREADS2D   16
 
#define WARPSIZE   32
 
#define MAXTHREADS   1024
 
#define MAXBLOCKS   4294967295
 
#define MAXBLOCKS2   65535
 
#define IDX2R(i, j, NJ)
 
#define IDX2C(i, j, NI)
 
#define IDIVUP(i, j)
 
#define IMUL(a, b)
 
#define MAX(a, b)
 
#define MIN(a, b)
 

Functions

int ftoi (float value)
 
int nextpower2 (int value)
 
int gpuDeviceInit (int devID)
 
void gpuDeviceList ()
 

Detailed Description

Various cuda related parameters and utilities.

Some routines are adapted from Nvidia CUDA samples/common/inc/help_cuda.h Copyright 1993-2013 NVIDIA Corporation. All rights reserved.

Macro Definition Documentation

◆ IDIVUP

#define IDIVUP ( i,
j )
Value:
((i+j-1)/j)

◆ IDX2C

#define IDX2C ( i,
j,
NI )
Value:
(((j)*(NI))+(i))

◆ IDX2R

#define IDX2R ( i,
j,
NJ )
Value:
(((i)*(NJ))+(j))

◆ IMUL

#define IMUL ( a,
b )
Value:
__mul24(a, b)

◆ MAX

#define MAX ( a,
b )
Value:
(a > b ? a : b)

◆ MIN

#define MIN ( a,
b )
Value:
(a > b ? b: a)

Generated for ISCE3.0 by doxygen 1.13.2.