MCPcopy Create free account

hub / github.com/mlco2/codecarbon / functions

Functions1,889 in github.com/mlco2/codecarbon

↓ 1 callersMethod_initialize_runtime_state
(self)
codecarbon/emissions_tracker.py:276
↓ 1 callersMethod_initialize_scheduler_state
(self)
codecarbon/emissions_tracker.py:340
↓ 1 callersMethod_is_amdsmi_not_initialized_error
(self, error: Exception)
codecarbon/core/gpu_amd.py:80
↓ 1 callersFunction_is_github_host
True if URL host is github.com or a subdomain (not e.g. evilgithub.com).
scripts/check_docs_links.py:45
↓ 1 callersMethod_is_platform_supported
(self)
codecarbon/core/cpu.py:449
↓ 1 callersFunction_load_core_telemetry_create
()
carbonserver/tests/api/test_telemetry_schema_drift.py:13
↓ 1 callersMethod_load_schemas
Load all BoAmps schemas and create a resolver.
tests/test_boamps_output.py:647
↓ 1 callersFunction_load_static_data
Load all static reference data at module import. Called once when codecarbon is imported. All data loaded here is immutable and shared a
codecarbon/input.py:31
↓ 1 callersFunction_local_href_skip_ok
Return (True, reason) if href needs no filesystem check; None to resolve path.
scripts/check_docs_links.py:57
↓ 1 callersFunction_local_target_exists
Return (ok, detail) for a same-origin path or relative URL.
scripts/check_docs_links.py:125
↓ 1 callersFunction_log_environment
Log environment variables and GPU availability.
examples/slurm_rocm/pytorch_matrix.py:40
↓ 1 callersMethod_log_error
(self, payload, response)
codecarbon/core/telemetry_client.py:55
↓ 1 callersFunction_log_gpu_memory_info
Log GPU memory information if available.
examples/slurm_rocm/pytorch_matrix.py:73
↓ 1 callersMethod_log_tracker_metadata
(self)
codecarbon/emissions_tracker.py:319
↓ 1 callersMethod_log_values
Logs output from Powermetrics to a file
codecarbon/core/powermetrics.py:122
↓ 1 callersFunction_login_via_fief
Perform the auth code flow against /auth/login, follow the Fief login page, and return the access token set in the session cookie.
carbonserver/tests/api/integration/test_auth_cookie_flow.py:69
↓ 1 callersMethod_main
Get CPU power from constant mode :return: model name (str), power in Watt (int)
codecarbon/core/cpu.py:980
↓ 1 callersFunction_match_local_file
Return (ok, detail) after checking candidate against built site layout.
scripts/check_docs_links.py:88
↓ 1 callersFunction_matches_glob
(url: str, pattern: str)
scripts/check_docs_links.py:51
↓ 1 callersMethod_monitor_power
Monitor the power consumption of the hardware. We do this for hardware that does not support energy monitoring. So we could a
codecarbon/emissions_tracker.py:1100
↓ 1 callersFunction_parse_login_form
(response: requests.Response)
carbonserver/tests/api/integration/test_auth_cookie_flow.py:49
↓ 1 callersMethod_populate_system_metadata
(self)
codecarbon/emissions_tracker.py:308
↓ 1 callersMethod_project_token_has_access_to_emission_id
( self, desired_access: int, emission_id, project_token: str )
carbonserver/carbonserver/api/services/project_token_service.py:149
↓ 1 callersMethod_project_token_has_access_to_experiment_id
Check if the project token has access to the experiment_id with the desired_access. Example: desired_access = AccessLevel.READ.value
carbonserver/carbonserver/api/services/project_token_service.py:123
↓ 1 callersMethod_project_token_has_access_to_project_id
( self, desired_access: int, project_id, project_token: str )
carbonserver/carbonserver/api/services/project_token_service.py:114
↓ 1 callersMethod_project_token_has_access_to_run_id
( self, desired_access: int, run_id, project_token: str )
carbonserver/carbonserver/api/services/project_token_service.py:140
↓ 1 callersMethod_read_domain_info
Read domain name and files from a domain directory.
codecarbon/core/cpu.py:531
↓ 1 callersFunction_refresh_tokens
Exchange a refresh token for a new token set via the OIDC token endpoint.
codecarbon/cli/auth.py:128
↓ 1 callersMethod_region_energy_mix_to_emissions_rate
Convert a mix of energy sources into emissions per kWh https://github.com/responsibleproblemsolving/energy-usage#calculating-co2-emis
codecarbon/core/emissions.py:373
↓ 1 callersMethod_resolve_output_methods
( self, output_methods, save_to_file, save_to_api, save_to_logger,
codecarbon/emissions_tracker.py:213
↓ 1 callersFunction_resolved_candidate_under_site
Resolve path to absolute Path under site_root, or (None, error).
scripts/check_docs_links.py:73
↓ 1 callersFunction_run_computation_loop
Run the main computation loop for 120 seconds on all devices in parallel.
examples/slurm_rocm/pytorch_matrix.py:164
↓ 1 callersFunction_run_rocm_smi_check
Run rocm-smi command and log output.
examples/slurm_rocm/pytorch_matrix.py:139
↓ 1 callersMethod_scan_base_entries
Scan a base directory for intel-rapl entries.
codecarbon/core/cpu.py:487
↓ 1 callersMethod_scan_entry_subdirs
Scan subdirectories of a RAPL entry for domain directories.
codecarbon/core/cpu.py:468
↓ 1 callersFunction_select_device
Select and configure devices (all GPUs or CPU).
examples/slurm_rocm/pytorch_matrix.py:55
↓ 1 callersMethod_select_domains_to_use
Select which domains to use based on configuration.
codecarbon/core/cpu.py:675
↓ 1 callersMethod_set_last_used
Update the last_used field of the project token
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:158
↓ 1 callersMethod_setup_cli
Setup cli command to run Intel Power Gadget
codecarbon/core/cpu.py:277
↓ 1 callersMethod_setup_cli
Setup cli command to run Powermetrics
codecarbon/core/powermetrics.py:106
↓ 1 callersMethod_setup_power_gadget
Set up CPU tracking using Intel Power Gadget.
codecarbon/core/resource_tracker.py:61
↓ 1 callersMethod_setup_rapl
Set up CPU tracking using RAPL interface.
codecarbon/core/resource_tracker.py:70
↓ 1 callersMethod_setup_rapl
(self)
codecarbon/core/cpu.py:452
↓ 1 callersMethod_update_emissions
Compute emissions for the energy consumed since the last update and add them to the total emissions.
codecarbon/emissions_tracker.py:924
↓ 1 callersFunction_validate_access_token
Validate access token against the current OIDC provider's JWKS. Returns False when the signature or expiry check fails (wrong provider, expir
codecarbon/cli/auth.py:102
↓ 1 callersMethod_validate_domain_readable
Validate that domain is readable and return (is_readable, is_required_main).
codecarbon/core/cpu.py:562
↓ 1 callersFunction_windows_get_physical_sockets
()
codecarbon/core/util.py:126
↓ 1 callersFunctionaddUser
()
webapp/src/pages/MembersPage.tsx:41
↓ 1 callersMethodadd_emission
(self, emission: schemas.EmissionCreate)
carbonserver/carbonserver/api/domain/emissions.py:10
↓ 1 callersMethodadd_emission
(self, emission: EmissionCreate)
carbonserver/carbonserver/api/services/emissions_service.py:14
↓ 1 callersMethodadd_experiment
(self, experiment: ExperimentCreate)
carbonserver/carbonserver/api/domain/experiments.py:9
↓ 1 callersMethodadd_experiment
(self, experiment: ExperimentCreate, user: User)
carbonserver/carbonserver/api/services/experiments_service.py:18
↓ 1 callersMethodadd_organization
( self, organization: OrganizationCreate, user: User = None )
carbonserver/carbonserver/api/services/organization_service.py:32
↓ 1 callersMethodadd_project
(self, project: schemas.ProjectCreate)
carbonserver/carbonserver/api/domain/projects.py:8
↓ 1 callersMethodadd_project_token
(self, project_id: str, project: schemas.ProjectTokenCreate)
carbonserver/carbonserver/api/domain/project_tokens.py:8
↓ 1 callersMethodadd_project_token
( self, project_id: str, input_project_token: ProjectTokenCreate, user )
carbonserver/carbonserver/api/services/project_token_service.py:26
↓ 1 callersMethodadd_run
(self, run: schemas.RunCreate)
carbonserver/carbonserver/api/domain/runs.py:8
↓ 1 callersMethodadd_run
(self, run: RunCreate, user: User = None)
carbonserver/carbonserver/api/services/run_service.py:18
↓ 1 callersMethodadd_telemetry
(self, telemetry: schemas_telemetry.TelemetryCreate)
carbonserver/carbonserver/api/domain/telemetry.py:9
↓ 1 callersMethodadd_telemetry
(self, telemetry: TelemetryCreate)
carbonserver/carbonserver/api/services/telemetry_service.py:15
↓ 1 callersMethodadd_user_by_mail
(self, *, organization_id: str, email: str, user: User = None)
carbonserver/carbonserver/api/services/organization_service.py:95
↓ 1 callersFunctionauthorize
Run the OAuth2 Authorization Code flow with PKCE.
codecarbon/cli/auth.py:146
↓ 1 callersFunctionbuild_model
()
examples/task_inference.py:12
↓ 1 callersFunctionbuild_model
()
examples/bert_inference.py:9
↓ 1 callersFunctionbusy_task
(duration_secs=4)
examples/task_loop_same_task.py:12
↓ 1 callersFunctioncall_ollama_api
(endpoint, payload)
examples/ollama_local_api.py:52
↓ 1 callersMethodcan_create_run
(self, experiment_id: UUID, user: User)
carbonserver/carbonserver/api/services/auth_context.py:52
↓ 1 callersMethodcan_read_organization
(self, organization_id: UUID, user: User)
carbonserver/carbonserver/api/services/auth_context.py:42
↓ 1 callersMethodcan_read_organization
(*args, **kwargs)
carbonserver/tests/api/mocks.py:31
↓ 1 callersMethodcan_write_organization
(*args, **kwargs)
carbonserver/tests/api/mocks.py:35
↓ 1 callersFunctioncheck_initial_data
(db)
carbonserver/initial_data.py:17
↓ 1 callersFunctioncheck_stress_ng_installed
()
examples/compare_cpu_load_and_RAPL.py:67
↓ 1 callersFunctioncollect_checks
Rows: (source_html, attr_name, url, kind) kind is local|external.
scripts/check_docs_links.py:172
↓ 1 callersFunctioncollect_measurements
(expected_load, load_type)
examples/compare_cpu_load_and_RAPL.py:168
↓ 1 callersMethodcommunicate
(self)
tests/test_powermetrics.py:15
↓ 1 callersFunctioncomputeEncryptedId
()
webapp/src/components/share-project-button.tsx:38
↓ 1 callersMethodcompute_detailed_sum
( self, project_id: str, start_date, end_date, user=None )
carbonserver/carbonserver/api/usecases/experiment/project_sum_by_experiment.py:13
↓ 1 callersMethodcompute_detailed_sum
( self, experiment_id: str, start_date, end_date )
carbonserver/carbonserver/api/usecases/run/experiment_sum_by_run.py:11
↓ 1 callersFunctionconfigure_fief
()
deploy/deploy.py:204
↓ 1 callersMethodcountry_emissions_data_path
(self, country: str)
codecarbon/input.py:110
↓ 1 callersMethodcountry_energy_mix_data_path
(self, country: str)
codecarbon/input.py:115
↓ 1 callersFunctioncreateExperiment
( experiment: ExperimentInput, )
webapp/src/api/experiments.ts:11
↓ 1 callersFunctioncreateOrganization
(organization: { name: string; description: string; })
webapp/src/api/organizations.ts:36
↓ 1 callersFunctioncreateProject
( organizationId: string, project: { name: string; description: string }, )
webapp/src/api/projects.ts:4
↓ 1 callersFunctioncreateProjectToken
( projectId: string, tokenName: string, access?: number, )
webapp/src/api/projectTokens.ts:18
↓ 1 callersFunctioncreate_app
()
carbonserver/main.py:50
↓ 1 callersMethodcreate_database
(self)
carbonserver/carbonserver/api/infra/database/database_manager.py:25
↓ 1 callersMethodcreate_project
Create a project
codecarbon/core/api_client.py:174
↓ 1 callersFunctiondata_output
(load_type, measurements)
examples/compare_cpu_load_and_RAPL.py:393
↓ 1 callersFunctiondecrypt
()
webapp/src/pages/PublicProjectPage.tsx:83
↓ 1 callersFunctiondeleteProject
(projectId: string)
webapp/src/api/projects.ts:50
↓ 1 callersFunctiondeleteProjectToken
( projectId: string, tokenId: string, )
webapp/src/api/projectTokens.ts:33
↓ 1 callersMethoddelete_project
(self, project_id: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:33
↓ 1 callersMethoddelete_project_token
(self, project_id: str, token_id: str)
carbonserver/carbonserver/api/domain/project_tokens.py:12
↓ 1 callersMethoddelete_project_token
(self, project_id: str, token_id: str, user)
carbonserver/carbonserver/api/services/project_token_service.py:55
↓ 1 callersFunctionderiveIv
( projectId: string, secret: string, )
webapp/src/utils/crypto.ts:59
↓ 1 callersMethoddescription
(self)
codecarbon/external/hardware.py:38
↓ 1 callersFunctiondowngrade
Check if tables exists, and then removes them
carbonserver/carbonserver/database/alembic/versions/5abae4eb2079_create_tables.py:188
↓ 1 callersFunctiondownload_csv_from_url
Navigates to a URL, handles cookie banner, and downloads a CSV file.
codecarbon/data/hardware/cpu_dataset_builder/amd_cpu_scrapper.py:51
↓ 1 callersMethodexit
(self)
codecarbon/output_methods/metrics/prometheus.py:101
← previousnext →401–500 of 1,889, ranked by callers