inducer / inducer/pyopencl

Deregistering a user-defined datatype. Register multiple dtypes to same ctype.

Open
#178 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
247
Avg merge
7h 2m
Merged PRs (30d)
6

Description

The usecase is that different devices have different alignments for a particular c struct. This raises the need for different numpy datatypes to be registered as same ctype which requires a provision where different numpy datatypes to registered as a particular ctype depending on the device that we working with at that time.

For example, the following simple struct
```
typedef struct {
int f1;
long f2;
} temp;
```
results in these two different datatypes when matched on two different `dtype({'names':['f1','f2'], 'formats':['

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.