@@ -28,7 +28,7 @@ Result VariorumProvider::initialize() {
2828 }
2929
3030 is_initialized_ = true ;
31- ENERGY_PROFILER_LOG_INFO (
31+ KOKKOS_TOOLS_ENERGY_PROFILER_LOG_INFO (
3232 COMPONENT_NAME, " Successfully initialized with " +
3333 std::to_string (device_ids_.size ()) + " device(s)" );
3434
@@ -43,7 +43,7 @@ void VariorumProvider::finalize() {
4343 cleanup_devices ();
4444 is_initialized_ = false ;
4545
46- ENERGY_PROFILER_LOG_INFO (COMPONENT_NAME, " Finalized" );
46+ KOKKOS_TOOLS_ENERGY_PROFILER_LOG_INFO (COMPONENT_NAME, " Finalized" );
4747}
4848
4949Result VariorumProvider::get_total_power_usage (double & power_watts) {
@@ -123,7 +123,7 @@ Result VariorumProvider::discover_devices() {
123123 uint32_t device_id = std::stoul (s_key.substr (4 ));
124124 found_device_ids.insert (device_id);
125125 } catch (const std::exception& e) {
126- ENERGY_PROFILER_LOG_WARNING (
126+ KOKKOS_TOOLS_ENERGY_PROFILER_LOG_WARNING (
127127 COMPONENT_NAME, " Could not parse GPU ID from key: " + s_key +
128128 " (" + e.what () + " )" );
129129 }
@@ -144,25 +144,25 @@ Result VariorumProvider::discover_devices() {
144144 device_ids_.push_back (device_id);
145145 device_names_.push_back (" GPU_" + std::to_string (device_id));
146146
147- ENERGY_PROFILER_LOG_INFO (
147+ KOKKOS_TOOLS_ENERGY_PROFILER_LOG_INFO (
148148 COMPONENT_NAME, " Found device " +
149149 std::to_string (device_ids_.size () - 1 ) + " : GPU_" +
150150 std::to_string (device_id));
151151 }
152152
153153 // Test initial power readings
154- ENERGY_PROFILER_LOG_INFO (COMPONENT_NAME, " Testing initial power readings..." );
154+ KOKKOS_TOOLS_ENERGY_PROFILER_LOG_INFO (COMPONENT_NAME, " Testing initial power readings..." );
155155 std::map<uint32_t , double > test_readings = get_current_power_readings ();
156156 for (size_t i = 0 ; i < device_ids_.size (); ++i) {
157157 uint32_t device_id = device_ids_[i];
158158 auto it = test_readings.find (device_id);
159159 if (it != test_readings.end ()) {
160- ENERGY_PROFILER_LOG_INFO (
160+ KOKKOS_TOOLS_ENERGY_PROFILER_LOG_INFO (
161161 COMPONENT_NAME,
162162 " Device " + std::to_string (i) +
163163 " : Current power usage: " + std::to_string (it->second ) + " W" );
164164 } else {
165- ENERGY_PROFILER_LOG_WARNING (
165+ KOKKOS_TOOLS_ENERGY_PROFILER_LOG_WARNING (
166166 COMPONENT_NAME,
167167 " Device " + std::to_string (i) + " : Power reading failed" );
168168 }
0 commit comments