skhayrulin / x_engine Goto Github PK
View Code? Open in Web Editor NEWI'm planning collect here all my work on rewrote version of Sibernetic engine
License: MIT License
I'm planning collect here all my work on rewrote version of Sibernetic engine
License: MIT License
Tests list:
If there were some problems during compiling the kernel source (we fall into the initialize_ocl in line 37), no ocl_solvers would be created, but execution would be continued. As a result, we would fall into make_partition and get division by zero in line 90 (in sph_model.hpp).
x_engine/inc/solver_container.hpp
Line 41 in 62e8a74
x_engine/cl_code/sph_cl_code.cl
Line 64 in 10b933e
In the structure particle (in particle.h) the sequence of feilds is:
container pos;
container vel;
size_t type;
size_t cell_id;
size_t get_dim() const { return dim; }
T density;
T pressure;
In the structure particle_f (and also in particle_d) the sequence of feilds is:
float4 pos;
float4 vel;
size_t cell_id;
size_t type_;
float density;
float pressure;
As you can see, the feilds cell_id and type are written in a different order. That is the reason of data consistency problem.
Line 263 in 2df7066
May be this line should be like this:
partitions.push_back(partition{0, static_cast<size_t>(size() - 1)});
?
If we have one device and we are trying to get last the last element in partition, it's desirable to write
model->get_particles().at(p.end);
which results in seg fault.
May be I'm wrong?
Line 87 in 62e8a74
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.