counted-float 0.8.0__tar.gz → 0.8.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {counted_float-0.8.0 → counted_float-0.8.2}/PKG-INFO +12 -8
- {counted_float-0.8.0 → counted_float-0.8.2}/README.md +8 -7
- {counted_float-0.8.0 → counted_float-0.8.2}/pyproject.toml +6 -1
- {counted_float-0.8.0 → counted_float-0.8.2}/.gitignore +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/LICENSE +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/_backwards_compat.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/_optional_deps.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/benchmarking/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/benchmarking/_flops_benchmark_suite.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/benchmarking/_flops_micro_benchmark.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/benchmarking/_micro_benchmark.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/benchmarking/_models.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/benchmarking/_time_utils.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/_builtin_data.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/_context_managers.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/_counted_float.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/_global_counter.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/config/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/config/_config.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/config/_defaults.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_base.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_counts.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_type.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_weights.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_flops_benchmark_result.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_instruction.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_specs.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/apple_m3_max.json +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i5_7200u.json +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i7_1265u.json +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/specs/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/specs/amd_zen4_r9_7900x.json +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/specs/intel_gen11_tiger_lake.json +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/benchmarking/__init__.py +0 -0
- {counted_float-0.8.0 → counted_float-0.8.2}/counted_float/config/__init__.py +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: counted-float
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Summary: Count floating-point operations in Python code & benchmark relative flop costs.
|
|
5
|
+
Project-URL: Source, https://github.com/bertpl/counted-float
|
|
6
|
+
Project-URL: Issues, https://github.com/bertpl/counted-float/issues
|
|
7
|
+
Project-URL: Roadmap, https://github.com/bertpl/counted-float/milestones
|
|
5
8
|
License-File: LICENSE
|
|
6
9
|
Requires-Python: >=3.10
|
|
7
10
|
Requires-Dist: backports-strenum>=1.3.1
|
|
@@ -12,11 +15,12 @@ Requires-Dist: numpy>=1.20; extra == 'benchmarking'
|
|
|
12
15
|
Requires-Dist: psutil>=5.0; extra == 'benchmarking'
|
|
13
16
|
Description-Content-Type: text/markdown
|
|
14
17
|
|
|
15
|
-
<!--START_SECTION:
|
|
16
|
-

|
|
17
|
-

|
|
20
|
+

|
|
21
|
+

|
|
22
|
+

|
|
23
|
+
<!--END_SECTION:images-->
|
|
20
24
|
|
|
21
25
|
# counted-float
|
|
22
26
|
|
|
@@ -115,7 +119,7 @@ cf2 = CountedFloat(2.94)
|
|
|
115
119
|
with FlopCountingContext() as ctx:
|
|
116
120
|
_ = cf1 * cf2
|
|
117
121
|
ctx.pause()
|
|
118
|
-
_ = cf1 + cf2 # will be executed but
|
|
122
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
119
123
|
ctx.resume()
|
|
120
124
|
_ = cf1 - cf2
|
|
121
125
|
|
|
@@ -134,7 +138,7 @@ cf2 = CountedFloat(2.94)
|
|
|
134
138
|
with FlopCountingContext() as ctx:
|
|
135
139
|
_ = cf1 * cf2
|
|
136
140
|
with PauseFlopCounting():
|
|
137
|
-
_ = cf1 + cf2 # will be executed but
|
|
141
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
138
142
|
_ = cf1 - cf2
|
|
139
143
|
|
|
140
144
|
counts = ctx.flop_counts() # {FlopType.MUL: 1, FlopType.SUB: 1}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
<!--START_SECTION:
|
|
2
|
-

|
|
3
|
-

|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
<!--END_SECTION:images-->
|
|
6
7
|
|
|
7
8
|
# counted-float
|
|
8
9
|
|
|
@@ -101,7 +102,7 @@ cf2 = CountedFloat(2.94)
|
|
|
101
102
|
with FlopCountingContext() as ctx:
|
|
102
103
|
_ = cf1 * cf2
|
|
103
104
|
ctx.pause()
|
|
104
|
-
_ = cf1 + cf2 # will be executed but
|
|
105
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
105
106
|
ctx.resume()
|
|
106
107
|
_ = cf1 - cf2
|
|
107
108
|
|
|
@@ -120,7 +121,7 @@ cf2 = CountedFloat(2.94)
|
|
|
120
121
|
with FlopCountingContext() as ctx:
|
|
121
122
|
_ = cf1 * cf2
|
|
122
123
|
with PauseFlopCounting():
|
|
123
|
-
_ = cf1 + cf2 # will be executed but
|
|
124
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
124
125
|
_ = cf1 - cf2
|
|
125
126
|
|
|
126
127
|
counts = ctx.flop_counts() # {FlopType.MUL: 1, FlopType.SUB: 1}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "counted-float"
|
|
3
|
-
version = "0.8.
|
|
3
|
+
version = "0.8.2"
|
|
4
4
|
description = "Count floating-point operations in Python code & benchmark relative flop costs."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -9,6 +9,11 @@ dependencies = [
|
|
|
9
9
|
"pydantic>=2.0.0",
|
|
10
10
|
]
|
|
11
11
|
|
|
12
|
+
[project.urls]
|
|
13
|
+
Source = "https://github.com/bertpl/counted-float"
|
|
14
|
+
Issues = "https://github.com/bertpl/counted-float/issues"
|
|
15
|
+
Roadmap = "https://github.com/bertpl/counted-float/milestones"
|
|
16
|
+
|
|
12
17
|
[project.optional-dependencies]
|
|
13
18
|
benchmarking = [
|
|
14
19
|
"numba>=0.50",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/benchmarking/_micro_benchmark.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/_context_managers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/config/_defaults.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_counts.py
RENAMED
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_type.py
RENAMED
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_weights.py
RENAMED
|
File without changes
|
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_instruction.py
RENAMED
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_specs.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/apple_m3_max.json
RENAMED
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i5_7200u.json
RENAMED
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i7_1265u.json
RENAMED
|
File without changes
|
|
File without changes
|
{counted_float-0.8.0 → counted_float-0.8.2}/counted_float/_core/data/specs/amd_zen4_r9_7900x.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|