Weiwei Wang

Results 7 comments of Weiwei Wang

> Can you also print the output? The output is ```julia cpu: [18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0;;;] cuda: [18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0;...

An error occurs if the kernel function changes to ```julia @kernel function kernel_xx!(tensor, Nx::Int64, Ny::Int64, Nz::Int64) i, j, k = @index(Global, NTuple) sum = zero(eltype(tensor)) for p in (-Nx):Nx for...

In my computer, the linear or cartesian also give the wrong results: ```julia cpu:[18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0; 18.0;;;] amd:[6.0; 6.0; 6.0; 6.0; 6.0; 6.0; 6.0;...

This time this kernel works well (the results are still wrong). > An error occurs if the kernel function changes to > > ```julia > @kernel function kernel_xx!(tensor, Nx::Int64, Ny::Int64,...

> > In my computer, the linear or cartesian also give the wrong results: > > Did you change how you launch the code? You need to specity `ndrange=length(x)` instead...

> You can also access size of the array within the kernel and compute `i, j` indices from there. And if you do only element-wise operations, you can just index...

It seems that changing the line ``` "@dimforge/rapier3d": "file:../rapier3d" ``` in the `package.json` to ``` "@dimforge/rapier3d": "latest" ``` will work