You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Using a memory pool is essential to good performance with libcudf. Today, the example libcudf application doesn't show how to construct an RMM memory resource nor set the current_device_resource.
Describe alternatives you've considered
One could argue that this could/should be a separate example, but using a pool resource is fundamental to performance in libcudf and makes sense to be part of the existing and future examples.
The text was updated successfully, but these errors were encountered:
int main(int argc, char** argv)
{
// Construct a memory pool using RAPIDS Memory Manager (RMM)
// Using a memory pool for device memory allocations is important for good performance in libcudf
// Defaults to allocating half of the available GPU memory
rmm::mr::pool_memory_resource mr{};
// Set the pool resource to be used by default for all device memory allocations
// Note: It is the user's responsibility to ensure the `mr` object stays alive for the duration of it being set as the default
rmm::mr::set_current_device_resource(&mr);
// Read data
auto stock_table_with_metadata = read_csv("4stock_5day.csv");
// Process
auto result = average_closing_price(*stock_table_with_metadata.tbl);
// Write out result
write_csv(*result, "4stock_5day_avg_close.csv");
return 0;
}
Is your feature request related to a problem? Please describe.
Using a memory pool is essential to good performance with libcudf. Today, the example libcudf application doesn't show how to construct an RMM memory resource nor set the
current_device_resource
.Describe the solution you'd like
The example should be updated to show constructing a
rmm::mr::pool_memory_resource
orrmm::mr::cuda_async_memory_resource
and setting it as the default viaset_current_device_resource
Describe alternatives you've considered
One could argue that this could/should be a separate example, but using a pool resource is fundamental to performance in libcudf and makes sense to be part of the existing and future examples.
The text was updated successfully, but these errors were encountered: