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
In defpelemay, Pelemay.to_gpu/1 and Pelemay.to_cpu/1 will work as follows:
defpelemaydodeffunc1(list)dolist|>Enum.map(&&1+1)# this code will be run on CPU.|>Pelemay.to_gpu()|>Enum.map(&&1*2)# this code will be run on GPU.# the return value will be returned to CPU.enddeffunc2(list)dolist|>Enum.map(&&1+1)# this code will be run on CPU.|>Pelemay.to_gpu()|>Enum.map(&&1*2)# this code will be run on GPU.|>Pelemay.to_cpu()|>Enum.map(&&1+1)# this code will be run on CPU.endend
This issue scope is only to create hooks.
The branch name is pelemay_options
The text was updated successfully, but these errors were encountered:
Would you implement to select whether CPU or GPU executes the code?
There are two functions:
Pelemay.to_gpu/1
andPelemay.to_cpu/1
.They are defined as follows:
In
defpelemay
,Pelemay.to_gpu/1
andPelemay.to_cpu/1
will work as follows:This issue scope is only to create hooks.
The branch name is
pelemay_options
The text was updated successfully, but these errors were encountered: