Bug Description
Carlos has found that if the below code is called when there are no agents, a CUDA invalid configuration exception will be raised.
To Reproduce
cell_agent = FLAMEGPU.agent("CELL") # agent list must be empty
cell_agent.sortInt("id", pyflamegpu.HostAgentAPI.Asc)
Raises
File "C:\Users\PC\anaconda3\envs\flamegpu_py310\lib\site-packages\pyflamegpu\pyflamegpu.py", line 14017, in sortInt
return _pyflamegpu.HostAgentAPI_sortInt(self, *args)
pyflamegpu.pyflamegpu.FLAMEGPURuntimeException: (CUDAError) D:/a/FLAMEGPU2/FLAMEGPU2/include\flamegpu/simulation/detail/CUDAErrorChecking.cuh(28): CUDA Error: D:\a\FLAMEGPU2\FLAMEGPU2\src\flamegpu\simulation\detail\CUDAScatter.cu(218): cudaErrorInvalidConfiguration invalid configuration argument
Expected Behaviour
It should be a null-op, notice empty and skip the sort.
OS
No response
CUDA Versions
No response
GPUs
No response
GPU Driver
No response
Additional Information
No response
Bug Description
Carlos has found that if the below code is called when there are no agents, a CUDA invalid configuration exception will be raised.
To Reproduce
Raises
Expected Behaviour
It should be a null-op, notice empty and skip the sort.
OS
No response
CUDA Versions
No response
GPUs
No response
GPU Driver
No response
Additional Information
No response