hornet-gt / hornetsnest Goto Github PK
View Code? Open in Web Editor NEWHigh-Performance Streaming Graph Analytics on GPUs
License: BSD 3-Clause "New" or "Revised" License
High-Performance Streaming Graph Analytics on GPUs
License: BSD 3-Clause "New" or "Revised" License
template<typename T>
typename std::enable_if<std::is_pointer<T>::value>::type
cuFreeAux(const char* file, int line, const char* func_name, T& ptr) noexcept {
using R = typename xlib::remove_const_ptr<T>::type;
auto& ptr1 = const_cast<R&>(ptr);
//Issue: The following two lines need to be switched
ptr1 = nullptr;
cudaErrorHandler(cudaFree(ptr1), "cudaFree", file, line, func_name);
}
This issue seems like fixed.
Is it based on the paper "An efficient implementation of the bellman-ford algorithm for kepler GPU architectures"?
https://github.com/hornet-gt/hornet/blob/master/include/Core/DataLayout/DataLayout.i.cuh
One example shown below and there are additional similar issues. :
178 template<typename... TArgs>
179 void AoS<TArgs...>::initialize(const void* (&array)[sizeof...(TArgs)],
180 int num_items) noexcept {
181 _num_items = num_items;
182 _h_ptr = new AoSData<TArgs...>[num_items];
183 for (auto i = 0; i < num_items; i++)
184 _h_ptr[i] = AoSData<TArgs...>(array, i);
185 cuMalloc(_d_ptr_, num_items); //Issue: _d_ptr_ should have been freed before allocating
186 cuMemcpyToDevice(_h_ptr, num_items, _d_ptr);
187 }
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.