Comments (3)
So I think there's been some subtlety in the type used for sycl, anyway, in that a reference type (queue&
) has been used, if I even understood things correctly. It seems to me that sycl could be made to behave more cuda/hip like by having some
struct sycl_stream_t
{
sycl::queue *q;
}
And that could hopefully be used to eliminate those subtle differences at the interface level?
from gtensor.
The queue is the gateway to all operations in SYCL, so it can't be null - something needs to intercept the attempt to set a null queue and replace it with the default for that device, or the interface needs to change so setting a null "stream" is not alowed, and resetting to the default is done another way.
from gtensor.
Right, the queue can't be null, but a pointer to it can be. So if that's what we're passing from Fortran, we can still use C_NULL_PTR. Currently, we directly use queue&
, which never can be officially NULL (though in practice if one passes is from Fortran, with Fortran thinking it's a pointer, it will be null. On the C side, one basically has to go, somewhere,
if (queue_pointer) return *queue; else return default queue;
from gtensor.
Related Issues (20)
- consistent size and index types HOT 7
- improve C API for streams
- sycl: use complex extension
- fortran: add cmake option for complex/real sizes
- fortran: rocm does not find ISO_Fortran_binding.h header HOT 2
- clib namespace is confusing HOT 1
- device debug print helper HOT 1
- more CI checks: ASan, UBSan, clang-tidy HOT 2
- missing return statement warning
- cmake: use official ROCm and oneAPI integration
- ci: update clang-format version HOT 8
- spack package, e4s integration, release
- alternate fft backends
- micro benchmarking assign expressions on all platforms
- improve caching allocator
- const stream objects HOT 2
- half precision support
- half precision axpy HOT 15
- CUDA host/device warnings (shape ctor not device) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtensor.