Skip to content

Conversation

@clementval
Copy link
Contributor

In a test like:

integer, allocatable, device :: da(:)
allocate(a(200))
a = 2
da = a ! da is not allocated before data transfer is initiated. Allocate it with a

The reference compiler will allocate the data for the da descriptor so the data transfer can be done properly.

@clementval clementval requested a review from wangzpgi June 9, 2025 20:37
@clementval clementval merged commit 9c54512 into llvm:main Jun 10, 2025
8 checks passed
@clementval clementval deleted the cuf_desc_desc_alloc branch June 10, 2025 16:43
tomtor pushed a commit to tomtor/llvm-project that referenced this pull request Jun 14, 2025
In a test like: 

```
integer, allocatable, device :: da(:)
allocate(a(200))
a = 2
da = a ! da is not allocated before data transfer is initiated. Allocate it with a
```

The reference compiler will allocate the data for the `da` descriptor so
the data transfer can be done properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants