You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to explicitly allocate memory on the CPU. In order to support this in pyccel-cuda we will create spoof functions which ensure that the code that the user writes runs correctly in Python
Test Code
Provide code which does not currently work but which should do when this issue is fixed:
A function host_empty should be created in pyccel.cuda.array_allocation. It should be possible to import this function using the syntax import pyccel.cuda as cuda. The function should work like numpy.empty. For this issue it is not necessary for the translation to work
The text was updated successfully, but these errors were encountered:
Relevant Discussion
#55 and discussion in the meeting on 13/6/2024
Describe the feature
I would like to be able to explicitly allocate memory on the CPU. In order to support this in pyccel-cuda we will create spoof functions which ensure that the code that the user writes runs correctly in Python
Test Code
Provide code which does not currently work but which should do when this issue is fixed:
Proposed Solution
A function
host_empty
should be created inpyccel.cuda.array_allocation
. It should be possible to import this function using the syntaximport pyccel.cuda as cuda
. The function should work likenumpy.empty
. For this issue it is not necessary for the translation to workThe text was updated successfully, but these errors were encountered: