diff --git a/carbon.py b/carbon.py index c3c93f6ca3341679e929beccc41f3249df2cb31f..3e28ef9bb177bfc2b749d12bcb92954a2353dca9 100644 --- a/carbon.py +++ b/carbon.py @@ -1,4 +1,3 @@ import pandas as pd - -df = pd.read_csv("emissions_naive.csv") -print(df[["duration", "emissions", "emissions_rate", "cpu_power", "gpu_power"]]) \ No newline at end of file +df = pd.read_csv("emissions_fast.csv") +print(df["gpu_power"]) \ No newline at end of file diff --git a/emissions_fast.csv b/emissions_fast.csv new file mode 100644 index 0000000000000000000000000000000000000000..9463eb9012f144adbc2f28ffc97ee6064cfb7ae9 --- /dev/null +++ b/emissions_fast.csv @@ -0,0 +1,3 @@ +timestamp,project_name,run_id,experiment_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue +2025-05-20T10:14:21,codecarbon,71f66f8a-476a-4c36-856b-d8f1ae3342b1,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,0.0101806027814745,5.3464753845869e-08,5.25162949517661e-06,216.36224151265608,0.0,10.0,3.7039807410446657e-07,0.0,1.672751580675443e-08,3.87125589911221e-07,Belgium,BEL,brussels capital,,,Linux-5.4.286-1.el8.elrepo.x86_64-x86_64-with-glibc2.28,3.12.8,3.0.1,2,Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz,1,1 x NVIDIA A10,4.4383,50.842,2.0,machine,N,1.0 +2025-05-20T10:27:55,codecarbon,c51c068c-585e-4ef4-91a1-5d0cc2e85d4e,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,0.010922254994511604,6.661268210444934e-08,6.098803052842292e-06,243.44435088167597,0.0,10.0,4.6361175978781866e-07,0.0,1.8714857287704945e-08,4.823266170755236e-07,Belgium,BEL,brussels capital,,,Linux-5.4.286-1.el8.elrepo.x86_64-x86_64-with-glibc2.28,3.12.8,3.0.1,2,Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz,1,1 x NVIDIA A10,4.4383,50.842,2.0,machine,N,1.0 diff --git a/tau_profile_fast.txt b/tau_profile_fast.txt index 7f483bf700325e5f06522d2ff9ab52ab0a9e5675..b61fc9ec4133470c4ebc4fa8e12bd25f8a4f5700 100644 --- a/tau_profile_fast.txt +++ b/tau_profile_fast.txt @@ -9,6 +9,6 @@ FUNCTION SUMMARY (total): 49.7 726 1,830 1 158 1830958 taupreload_main 24.6 904 904 1 0 904273 matrix_mul 24.5 902 902 1 0 902003 cl_int clFinish(cl_command_queue) C - 2.9 107 107 1 0 107413 cl_context clCreateContext(const cl_context_properties *, cl_uint, const cl_device_id *, void (*)(const char *, const void *, size_t, void *), void *, cl_int *) C - 1.8 66 66 2 0 33116 cl_int clGetPlatformIDs(cl_uint, cl_platform_id *, cl_uint *) C - 0.4 14 14 9 0 1624 cl_int clBuildProgram(cl_program, cl_uint, const cl_device_id *, const char *, void (*)(cl_program, void *), void *) C \ No newline at end of file + 2.9 107 107 1 0 107413 cl_context clCreateContext + 1.8 66 66 2 0 33116 cl_int clGetPlatformIDs + 0.4 14 14 9 0 1624 cl_int clBuildProgram \ No newline at end of file diff --git a/tau_profile_naive.txt b/tau_profile_naive.txt index 4b94b99bb75f40bc701ad09c7c1a313de83743d0..7e29111d0b9b005862329b7448f072110b37c2f5 100644 --- a/tau_profile_naive.txt +++ b/tau_profile_naive.txt @@ -9,6 +9,6 @@ FUNCTION SUMMARY (total): 50.0 725 12,055 1 157 12055839 taupreload_main 45.8 11,061 11,061 1 0 11061448 cl_int clFinish(cl_command_queue) C 45.8 11,061 11,061 1 0 11061306 matrix_mul - 0.5 126 126 2 0 63131 cl_int clGetPlatformIDs(cl_uint, cl_platform_id *, cl_uint *) C - 0.5 115 115 1 0 115365 cl_context clCreateContext(const cl_context_properties *, cl_uint, const cl_device_id *, void (*)(const char *, const void *, size_t, void *), void *, cl_int *) C - 0.1 15 15 9 0 1723 cl_int clBuildProgram(cl_program, cl_uint, const cl_device_id *, const char *, void (*)(cl_program, void *), void *) C \ No newline at end of file + 0.5 126 126 2 0 63131 cl_int clGetPlatformIDs + 0.5 115 115 1 0 115365 cl_context clCreateContext + 0.1 15 15 9 0 1723 cl_int clBuildProgram \ No newline at end of file