Skip to content

Commit

Permalink
Updating README to contain more information
Browse files Browse the repository at this point in the history
- Fixed a few erratic sentences as well
  • Loading branch information
pavanky committed Oct 20, 2014
1 parent 01ec423 commit a143e59
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This is an alternative to using `libdeivce` when using NVVM IR. The PTX files ca
- `src/logic.cu`: Basic logical operations (>, <, >=, <=, ==, !=).
- Function handles: `gt`, `lt`, `ge`, `le`, `eq`, `neq`
- Includes operations on complex numbers
- For complex numbers, `eq` and `neq` check both for real and imaginary values.
- For complex numbers, `eq` and `neq` check for both real and imaginary values.
- For complex numbers, everything else checks for absolute values

- `src/numeric.cu`: Numerical operations on numbers
Expand All @@ -33,14 +33,18 @@ This is an alternative to using `libdeivce` when using NVVM IR. The PTX files ca
- Functions included: `sinh`, `cosh`, `tanh`, `asinh`, `acosh`, `atanh`
- Complex numbers not supported

- `PTX64/sm_xx/*.ptx`: PTX files for 64 bit systems for compute `sm_xx`

- `PTX32/sm_xx/*.ptx`: PTX files for 32 bit systems for compute `sm_xx`

### Naming scheme

The native name mangling from the auto-generated PTX is changed to something friendlier for string manipulation.

The naming scheme consists of three parts.

- three underscores (common everywhere)
- by function name
- function name
- a letter denoting each of the input types.
- `float` is `s`
- `double` is `d`
Expand All @@ -51,4 +55,7 @@ The naming scheme consists of three parts.
- `char` is `j`
- `unsigned char` is `v` (a.k.a `uchar`)

For example the function denoting addition of two floating point complex numbers would be: `___addcc`.
Sample names:
- `add` on two floating point complex numbers would be: `___addcc`.
- `sin` on a double precision number would be `___sind`
- `max` of two unsigned integers would be `___maxuu`

0 comments on commit a143e59

Please sign in to comment.