Skip to content

Commit

Permalink
Comment out dumping to aux files
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrupa-intel committed Jul 24, 2024
1 parent 3e88f53 commit 3716066
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/plugins/intel_gpu/include/intel_gpu/primitives/data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ struct data : public primitive_base<data> {

if (_allocation_type == allocation_type::usm_host || _allocation_type == allocation_type::usm_shared) {
if (cache_without_weights) {
std::ofstream ifstr_save("/home/tkrupa/test/save.bin", std::ofstream::app | std::ofstream::binary);
BinaryOutputBuffer saveBuffer(ifstr_save);
//std::ofstream ifstr_save("/home/tkrupa/test/save.bin", std::ofstream::app | std::ofstream::binary);
//BinaryOutputBuffer saveBuffer(ifstr_save);
ob << true;
ob << bin_offset;
ob << make_data(mem->buffer_ptr(), data_size);
saveBuffer << make_data(mem->buffer_ptr(), data_size);
ifstr_save.close();
//ob << make_data(mem->buffer_ptr(), data_size);
//saveBuffer << make_data(mem->buffer_ptr(), data_size);
//ifstr_save.close();
} else {
ob << false;
ob << make_data(mem->buffer_ptr(), data_size);
Expand Down Expand Up @@ -96,8 +96,8 @@ struct data : public primitive_base<data> {
// TODO: propagate weights_path here
if (_allocation_type == allocation_type::usm_host || _allocation_type == allocation_type::usm_shared) {
if (cache_without_weights) {
std::ofstream ifstr_load("/home/tkrupa/test/load.bin", std::ofstream::app | std::ofstream::binary);
BinaryOutputBuffer loadBuffer(ifstr_load);
//std::ofstream ifstr_load("/home/tkrupa/test/load.bin", std::ofstream::app | std::ofstream::binary);
//BinaryOutputBuffer loadBuffer(ifstr_load);
size_t bin_offset;
ib >> bin_offset;
//std::ifstream ifstr("/home/tkrupa/test/shufflenet.bin", std::ifstream::binary);
Expand All @@ -110,9 +110,9 @@ struct data : public primitive_base<data> {
data_size,
mapped_memory);
std::memcpy(reinterpret_cast<uint8_t*>(mem->buffer_ptr()), shared_buf->get_ptr<uint8_t>(), data_size);
loadBuffer << make_data(mem->buffer_ptr(), data_size);
ib >> make_data(mem->buffer_ptr(), data_size);
ifstr_load.close();
//loadBuffer << make_data(mem->buffer_ptr(), data_size);
//ib >> make_data(mem->buffer_ptr(), data_size);
//ifstr_load.close();
} else {
ib >> make_data(mem->buffer_ptr(), data_size);
}
Expand Down

0 comments on commit 3716066

Please sign in to comment.