reduce doesn't query src backend if backend specified#23
reduce doesn't query src backend if backend specified#23dstahlke wants to merge 2 commits intoJuliaGPU:mainfrom
Conversation
|
This is great, one of the primary reasons I added an explicit A test for such unmaterialised types - MappedArrays or simple ranges - would be very useful; and perhaps including such tests for the other functions, thanks! |
|
Unit tests added for range and mappedvector. I tried to also get this working for mapreduce_nd. There are a variety of InvalidIRError, for example "unsupported dynamic function invocation (call to convert)" and "unsupported dynamic function invocation (call to print_to_string". Test case: |
This allows calling reduce on MappedArrays types. That's nice because you can avoid allocating a large array to store the input. For example,
I'm creating a bare-bones pull request to get feedback on whether this is desired. If so, I can add a unit test.