MCPcopy Create free account

hub / github.com/mlco2/codecarbon / functions

Functions1,889 in github.com/mlco2/codecarbon

↓ 3 callersFunctionis_rocm_system
Returns True if the system has an rocm-smi interface.
codecarbon/core/gpu_amd.py:9
↓ 3 callersMethodis_user_in_organization
( self, organization_id: UUID, user: User, *, is_admin: bool | None = None )
carbonserver/carbonserver/api/infra/repositories/repository_users.py:97
↓ 3 callersMethodlist_power_domains
List available RAPL power domains (including intel-rapl and intel-rapl-mmio) :param deduplicate: If True, avoid duplicate domains wi
examples/rapl/intel_rapl_show.py:187
↓ 3 callersMethodlist_projects_from_organization
(self, organization_id: str, user: User)
carbonserver/carbonserver/api/services/project_service.py:67
↓ 3 callersFunctionmakeEmissionSeries
(args: { runId: string; samples: number; startedAt: Date; })
webapp/src/api/mock/data.ts:179
↓ 3 callersFunctionmakeExperiment
(args: { id: string; projectId: string; name: string; description: string; timestamp: stri
webapp/src/api/mock/data.ts:112
↓ 3 callersFunctionmakeRunMetadata
(args: { runId: string; experimentId: string; timestamp: string; })
webapp/src/api/mock/data.ts:155
↓ 3 callersFunctionmakeRunRow
(args: { runId: string; experimentId: string; timestamp: string; emissions: number; energy
webapp/src/api/mock/data.ts:227
↓ 3 callersMethodmap_sql_to_schema
Convert a models.ProjectToken to a schemas.ProjectToken :project: An ProjectToken in SQLAlchemy format. :returns: An ProjectToken in
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:169
↓ 3 callersMethodmap_sql_to_schema
Convert a models.Experiment to a schemas.Experiment :experiment: An Experiment in SQLAlchemy format. :returns: An Experiment in pyDan
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:183
↓ 3 callersFunctionnotFound
(msg = "Not found")
webapp/src/api/mock/handlers.ts:15
↓ 3 callersMethodout
(self, total: EmissionsData, _)
codecarbon/output_methods/logger.py:19
↓ 3 callersMethodout
(self, total: EmissionsData, _)
codecarbon/output_methods/logger.py:35
↓ 3 callersMethodout
(self, total: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/metrics/prometheus.py:110
↓ 3 callersFunctionparse_gpu_ids
Transforms the potential gpu_ids into a list of string id values. Args: gpu_ids: The config file or environment variable value for
codecarbon/core/config.py:47
↓ 3 callersFunctionpickTimeFormat
(spanMs: number)
webapp/src/helpers/time-axis.ts:8
↓ 3 callersMethodpredict
(self, input_data)
tests/test_tracking_inference.py:31
↓ 3 callersFunctionredirectToLogin
()
webapp/src/api/auth.ts:30
↓ 3 callersFunctionset_logger_level
(level: Optional[str] = None)
codecarbon/external/logger.py:25
↓ 3 callersMethodstop
Stop the scheduler.
codecarbon/external/scheduler.py:44
↓ 3 callersMethodsubscribe_user_to_org
( self, user: User, organization_id: UUID, )
carbonserver/carbonserver/api/services/signup_service.py:46
↓ 3 callersMethodverify_logging_output
(self, file_path: str, expected_lines=1)
tests/test_logging_output.py:96
↓ 3 callersMethodverify_output_file
(self, file_path: str)
tests/test_emissions_tracker_constant.py:136
↓ 3 callersMethodverify_output_file
(self, file_path: str, expected_lines=3)
tests/test_emissions_tracker_flush.py:99
↓ 2 callersMethod__init__
(self, handle, gpu_index)
tests/test_gpu_amd.py:497
↓ 2 callersMethod__init__
(self, command, text=True)
tests/cli/test_monitor.py:35
↓ 2 callersFunction_api_base_url
()
carbonserver/tests/api/integration/test_auth_cookie_flow.py:64
↓ 2 callersMethod_calculate_power_from_cpu_load
(tdp, cpu_load, model)
codecarbon/external/hardware.py:235
↓ 2 callersMethod_check_output_is_not_empty
(self, logfire_output)
tests/output_methods/metrics/test_logfire.py:63
↓ 2 callersFunction_contract_schema
(schema)
carbonserver/tests/api/test_telemetry_schema_drift.py:23
↓ 2 callersMethod_decode_token
(self, token: str)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:52
↓ 2 callersFunction_decorate
(fn: Callable)
codecarbon/emissions_tracker.py:1543
↓ 2 callersMethod_emit_selection_warning_for_gpu_id
(self, gpu_id: int)
codecarbon/external/hardware.py:166
↓ 2 callersFunction_extract_overrides
Extract known camelCase keys from a dict, returning them as snake_case.
codecarbon/output_methods/boamps/output.py:24
↓ 2 callersMethod_get_children_memories
Compute the used RAM by the process's children Returns: list(int): The list of RAM values
codecarbon/external/ram.py:195
↓ 2 callersMethod_get_compute_mode
Returns the compute mode of the GPU
codecarbon/core/gpu_amd.py:246
↓ 2 callersMethod_get_gpu_utilization
Returns the % of utilization of the kernels during the last sample
codecarbon/core/gpu_amd.py:239
↓ 2 callersMethod_get_install_instructions
Get CPU tracking installation instructions for the current OS.
codecarbon/core/resource_tracker.py:104
↓ 2 callersMethod_get_power_from_cpus
Get CPU power :return: power in kW
codecarbon/external/hardware.py:337
↓ 2 callersMethod_get_uuid
Returns the globally unique GPU device UUID
codecarbon/core/gpu_amd.py:160
↓ 2 callersMethod_get_windows_exec_backup
Find the windows executable for the current version of intel power gadget. Example: "C:\\Program Files\\Intel\\Power Gadget 3.5\\Powe
codecarbon/core/cpu.py:305
↓ 2 callersMethod_is_dual_gcd_power_limited_model
(self, gpu_name: str)
codecarbon/core/gpu_amd.py:46
↓ 2 callersMethod_is_supported_nordic_region
(geo: GeoMetadata)
codecarbon/core/emissions.py:224
↓ 2 callersFunction_load_credentials
Load OAuth tokens from the local credentials file.
codecarbon/cli/auth.py:93
↓ 2 callersMethod_make_handler
(self, path)
tests/cli/test_cli_auth.py:21
↓ 2 callersMethod_persist_data
( self, total_emissions: EmissionsData, delta_emissions: EmissionsData, experi
codecarbon/emissions_tracker.py:909
↓ 2 callersMethod_read_report
(self)
tests/test_boamps_output.py:1074
↓ 2 callersFunction_save_credentials
Save OAuth tokens to the local credentials file.
codecarbon/cli/auth.py:87
↓ 2 callersFunction_scan_base_for_rapl
Scan a single base directory for RAPL entries.
codecarbon/core/cpu.py:140
↓ 2 callersFunction_scan_direct_entries
Scan for direct intel-rapl:$i entries in base directory.
codecarbon/core/cpu.py:120
↓ 2 callersFunction_scan_domain_directories
Scan domain directories under a RAPL provider.
codecarbon/core/cpu.py:102
↓ 2 callersFunction_setup
(settings: Settings)
deploy/deploy.py:57
↓ 2 callersMethod_setup_powermetrics
Set up CPU and GPU tracking using PowerMetrics (Apple Silicon).
codecarbon/core/resource_tracker.py:84
↓ 2 callersFunction_to_boamps_datetime
Normalize a timestamp to BoAmps format (YYYY-MM-DD HH:MM:SS).
codecarbon/output_methods/boamps/mapper.py:27
↓ 2 callersMethod_validate_telemetry
(telemetry: Union[TelemetryCreate, dict])
codecarbon/core/telemetry_client.py:50
↓ 2 callersMethodadd_experiment
Create an experiment, used by the CLI, not the package. ::experiment:: The experiment to create.
codecarbon/core/api_client.py:318
↓ 2 callersMethodadd_organization
(self, user: User, organisation_id: str)
carbonserver/carbonserver/api/services/user_service.py:31
↓ 2 callersMethodadd_project
(self, project: ProjectCreate, user: User)
carbonserver/carbonserver/api/services/project_service.py:21
↓ 2 callersMethodcheck_auth
Check API access to user account
codecarbon/core/api_client.py:82
↓ 2 callersMethodcheck_organization_exists
Check if an organization exists
codecarbon/core/api_client.py:106
↓ 2 callersMethodcompute_delta_emission
(self, previous_emission)
codecarbon/output_methods/emissions_data.py:55
↓ 2 callersMethodcompute_detailed_sum
( self, organization_id: str, start_date, end_date )
carbonserver/carbonserver/api/usecases/organization/organization_sum.py:11
↓ 2 callersFunctioncreate_new_config_file
()
codecarbon/cli/cli_utils.py:83
↓ 2 callersMethodcreate_organization
Create an organization
codecarbon/core/api_client.py:118
↓ 2 callersMethodcreate_redirect_response
RedirectResponse doesn't work with clevercloud, so we return a HTML page with a script to redirect the user Ideally we should be able to do `
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:103
↓ 2 callersFunctionderiveAesKey
(secret: string)
webapp/src/utils/crypto.ts:79
↓ 2 callersMethoddo_GET
(self)
codecarbon/cli/auth.py:47
↓ 2 callersFunctionfetchApiVoid
( endpoint: string, options?: RequestInit, )
webapp/src/api/client.ts:48
↓ 2 callersMethodfrom_litres
(cls, litres: float)
codecarbon/core/units.py:175
↓ 2 callersFunctiongetEmissionsTimeSeries
( runId: string, )
webapp/src/api/runs.ts:58
↓ 2 callersFunctiongetEquivalentCarKm
(emissionKg: number)
webapp/src/helpers/constants.ts:29
↓ 2 callersFunctiongetEquivalentCitizenPercentage
(emissionKg: number)
webapp/src/helpers/constants.ts:14
↓ 2 callersFunctiongetEquivalentTvTime
(energyKwh: number)
webapp/src/helpers/constants.ts:45
↓ 2 callersFunctiongetExperiments
(projectId: string)
webapp/src/api/experiments.ts:20
↓ 2 callersFunctiongetProjectEmissionsByExperiment
( projectId: string, dateRange: DateRange, )
webapp/src/api/experiments.ts:32
↓ 2 callersFunctiongetRunEmissionsByExperiment
( experimentId: string, startDate: string, endDate: string, )
webapp/src/api/runs.ts:22
↓ 2 callersFunctiongetSecret
()
webapp/src/utils/crypto.ts:25
↓ 2 callersFunctionget_api_key
(project_id: str)
codecarbon/cli/main.py:134
↓ 2 callersMethodget_car_miles
8.89 × 10-3 metric tons CO2/gallon gasoline × 1/22.0 miles per gallon car/truck average × 1 CO2, CH4, and N2O/0.988 CO2
codecarbon/viz/data.py:54
↓ 2 callersMethodget_cloud_country_iso_code
Returns the Country ISO Code where the cloud region is located
codecarbon/core/emissions.py:113
↓ 2 callersMethodget_cloud_country_name
Returns the Country Name where the cloud region is located
codecarbon/core/emissions.py:98
↓ 2 callersMethodget_cloud_emissions_barchart_data
( self, net_energy_consumed: float, on_cloud: str, cloud_provider: str,
codecarbon/viz/data.py:202
↓ 2 callersMethodget_cloud_emissions_barchart_figure
( self, cloud_emissions_barchart_data: pd.DataFrame )
codecarbon/viz/components.py:332
↓ 2 callersMethodget_cloud_emissions_comparison
()
codecarbon/viz/components.py:303
↓ 2 callersMethodget_cloud_geo_region
Returns the State/City where the cloud region is located
codecarbon/core/emissions.py:128
↓ 2 callersMethodget_cloud_recommendation
( self, on_cloud: str, cloud_provider_name: str, cloud_emissions_barchart_data
codecarbon/viz/components.py:355
↓ 2 callersMethodget_country_choropleth_data
( country_energy_mix: Dict, country_name: str, country_iso_code: str, country_
codecarbon/viz/data.py:130
↓ 2 callersFunctionget_cpu_cores
Get the number of CPU cores
examples/compare_cpu_load_and_RAPL.py:206
↓ 2 callersMethodget_delta
Get difference since last time this function was called >>> get_delta() [ { "name": "Tesla V100-SXM2-16GB"
codecarbon/core/gpu.py:140
↓ 2 callersMethodget_detected_hardware
Get the detected hardware. :return: A dictionary containing hardware data.
codecarbon/emissions_tracker.py:639
↓ 2 callersMethodget_detected_hardware
(self)
tests/cli/test_cli_main.py:77
↓ 2 callersMethodget_emissions_from_run
(self, run_id)
carbonserver/carbonserver/api/domain/emissions.py:18
↓ 2 callersMethodget_exemplary_equivalents
()
codecarbon/viz/components.py:176
↓ 2 callersMethodget_experiment
Get an experiment by id
codecarbon/core/api_client.py:332
↓ 2 callersMethodget_global_comparison
(self)
codecarbon/viz/components.py:461
↓ 2 callersMethodget_global_emissions_choropleth_figure
(self, choropleth_data)
codecarbon/viz/components.py:484
↓ 2 callersMethodget_global_energy_mix_choropleth_figure
(self, energy_type, choropleth_data)
codecarbon/viz/components.py:515
↓ 2 callersMethodget_header
()
codecarbon/viz/components.py:37
↓ 2 callersMethodget_hidden_project_data
()
codecarbon/viz/components.py:701
↓ 2 callersMethodget_hidden_project_summary
()
codecarbon/viz/components.py:705
← previousnext →201–300 of 1,889, ranked by callers