amalgam-lang 10.2.0__tar.gz → 10.2.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.
Potentially problematic release.
This version of amalgam-lang might be problematic. Click here for more details.
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/PKG-INFO +1 -1
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/api.py +30 -9
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/darwin/amd64/amalgam-mt-noavx.dylib +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/darwin/amd64/amalgam-mt.dylib +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/darwin/amd64/amalgam-omp.dylib +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/darwin/amd64/amalgam-st.dylib +0 -0
- amalgam_lang-10.2.2/amalgam/lib/darwin/amd64/docs/version.json +3 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/darwin/arm64/amalgam-mt.dylib +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/darwin/arm64/amalgam-omp.dylib +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/darwin/arm64/amalgam-st.dylib +0 -0
- amalgam_lang-10.2.2/amalgam/lib/darwin/arm64/docs/version.json +3 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/amd64/amalgam-mt-noavx.so +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/amd64/amalgam-mt.so +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/amd64/amalgam-omp.so +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/amd64/amalgam-st.so +0 -0
- amalgam_lang-10.2.2/amalgam/lib/linux/amd64/docs/version.json +3 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/arm64/amalgam-mt.so +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/arm64/amalgam-omp.so +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/arm64/amalgam-st.so +0 -0
- amalgam_lang-10.2.2/amalgam/lib/linux/arm64/docs/version.json +3 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/linux/arm64_8a/amalgam-st.so +0 -0
- amalgam_lang-10.2.2/amalgam/lib/linux/arm64_8a/docs/version.json +3 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/version.json +3 -3
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/windows/amd64/amalgam-mt-noavx.dll +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/windows/amd64/amalgam-mt.dll +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/windows/amd64/amalgam-omp.dll +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/lib/windows/amd64/amalgam-st.dll +0 -0
- amalgam_lang-10.2.2/amalgam/lib/windows/amd64/docs/version.json +3 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam_lang.egg-info/PKG-INFO +1 -1
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/version.json +1 -1
- amalgam_lang-10.2.0/amalgam/lib/darwin/amd64/docs/version.json +0 -3
- amalgam_lang-10.2.0/amalgam/lib/darwin/arm64/docs/version.json +0 -3
- amalgam_lang-10.2.0/amalgam/lib/linux/amd64/docs/version.json +0 -3
- amalgam_lang-10.2.0/amalgam/lib/linux/arm64/docs/version.json +0 -3
- amalgam_lang-10.2.0/amalgam/lib/linux/arm64_8a/docs/version.json +0 -3
- amalgam_lang-10.2.0/amalgam/lib/windows/amd64/docs/version.json +0 -3
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.coveragerc +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.flake8 +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.github/CODEOWNERS +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.github/templates/version_summary.md +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.github/workflows/build-pr.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.github/workflows/build-release.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.github/workflows/build.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.gitignore +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/.pylintrc +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/CONTRIBUTING.md +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/LICENSE.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/MANIFEST.in +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/README.md +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam/__init__.py +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam_lang.egg-info/SOURCES.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam_lang.egg-info/dependency_links.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam_lang.egg-info/requires.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/amalgam_lang.egg-info/top_level.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/bin/build.sh +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/config/latest-mt-debug-howso.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/config/latest-mt-howso.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/config/latest-st-debug-howso.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/config/latest-st-howso.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/doc/dependency_decisions.yml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/pyproject.toml +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/requirements-3.10-dev.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/requirements-3.11-dev.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/requirements-3.12-dev.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/requirements-3.9-dev.txt +0 -0
- {amalgam_lang-10.2.0 → amalgam_lang-10.2.2}/setup.cfg +0 -0
|
@@ -63,7 +63,7 @@ class Amalgam:
|
|
|
63
63
|
appropriate library bundled with the package.
|
|
64
64
|
|
|
65
65
|
append_trace_file : bool, default False
|
|
66
|
-
If True, new content will be appended to a
|
|
66
|
+
If True, new content will be appended to a trace file if the file
|
|
67
67
|
already exists rather than creating a new file.
|
|
68
68
|
|
|
69
69
|
execution_trace_dir : Union[str, None], default None
|
|
@@ -87,12 +87,12 @@ class Amalgam:
|
|
|
87
87
|
it within library_path. If neither are available, -mt (multi-threaded)
|
|
88
88
|
will be used.
|
|
89
89
|
|
|
90
|
-
max_num_threads : int, default
|
|
90
|
+
max_num_threads : int or None, default None
|
|
91
91
|
If a multithreaded Amalgam binary is used, sets the maximum number
|
|
92
92
|
of threads to the value specified. If 0, will use the number of
|
|
93
|
-
visible logical cores.
|
|
93
|
+
visible logical cores. Default None will not attempt to set this value.
|
|
94
94
|
|
|
95
|
-
sbf_datastore_enabled : bool, default
|
|
95
|
+
sbf_datastore_enabled : bool or None, default None
|
|
96
96
|
If true, sbf tree structures are enabled.
|
|
97
97
|
|
|
98
98
|
trace : bool, optional
|
|
@@ -118,8 +118,8 @@ class Amalgam:
|
|
|
118
118
|
execution_trace_file: str = "execution.trace",
|
|
119
119
|
gc_interval: Optional[int] = None,
|
|
120
120
|
library_postfix: Optional[str] = None,
|
|
121
|
-
max_num_threads: int =
|
|
122
|
-
sbf_datastore_enabled: bool =
|
|
121
|
+
max_num_threads: Optional[int] = None,
|
|
122
|
+
sbf_datastore_enabled: Optional[bool] = None,
|
|
123
123
|
trace: Optional[bool] = None,
|
|
124
124
|
**kwargs
|
|
125
125
|
):
|
|
@@ -168,8 +168,10 @@ class Amalgam:
|
|
|
168
168
|
_logger.debug(f"Loading amalgam library: {self.library_path}")
|
|
169
169
|
_logger.debug(f"SBF_DATASTORE enabled: {sbf_datastore_enabled}")
|
|
170
170
|
self.amlg = cdll.LoadLibrary(str(self.library_path))
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
if sbf_datastore_enabled is not None:
|
|
172
|
+
self.set_amlg_flags(sbf_datastore_enabled)
|
|
173
|
+
if max_num_threads is not None:
|
|
174
|
+
self.set_max_num_threads(max_num_threads)
|
|
173
175
|
self.gc_interval = gc_interval
|
|
174
176
|
self.op_count = 0
|
|
175
177
|
self.load_command_log_entry = None
|
|
@@ -378,6 +380,22 @@ class Amalgam:
|
|
|
378
380
|
self.amlg.SetSBFDataStoreEnabled.restype = c_void_p
|
|
379
381
|
self.amlg.SetSBFDataStoreEnabled(sbf_datastore_enabled)
|
|
380
382
|
|
|
383
|
+
def get_max_num_threads(self) -> int:
|
|
384
|
+
"""
|
|
385
|
+
Get the maximum number of threads currently set.
|
|
386
|
+
|
|
387
|
+
Returns
|
|
388
|
+
-------
|
|
389
|
+
int
|
|
390
|
+
The maximum number of threads that Amalgam is configured to use.
|
|
391
|
+
"""
|
|
392
|
+
self.amlg.GetMaxNumThreads.restype = c_size_t
|
|
393
|
+
self._log_execution("GET_MAX_NUM_THREADS")
|
|
394
|
+
result = self.amlg.GetMaxNumThreads()
|
|
395
|
+
self._log_reply(result)
|
|
396
|
+
|
|
397
|
+
return result
|
|
398
|
+
|
|
381
399
|
def set_max_num_threads(self, max_num_threads: int = 0) -> None:
|
|
382
400
|
"""
|
|
383
401
|
Set the maximum number of threads.
|
|
@@ -393,7 +411,10 @@ class Amalgam:
|
|
|
393
411
|
"""
|
|
394
412
|
self.amlg.SetMaxNumThreads.argtype = [c_size_t]
|
|
395
413
|
self.amlg.SetMaxNumThreads.restype = c_void_p
|
|
396
|
-
|
|
414
|
+
|
|
415
|
+
self._log_execution(f"SET_MAX_NUM_THREADS {max_num_threads}")
|
|
416
|
+
result = self.amlg.SetMaxNumThreads(max_num_threads)
|
|
417
|
+
self._log_reply(result)
|
|
397
418
|
|
|
398
419
|
def reset_trace(self, file: str) -> None:
|
|
399
420
|
"""
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": {
|
|
3
|
-
"amalgam": "51.2.
|
|
4
|
-
"amalgam_sha": "
|
|
5
|
-
"amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/51.2.
|
|
3
|
+
"amalgam": "51.2.1",
|
|
4
|
+
"amalgam_sha": "b5e400ce25305b84bfbffe83e6166d103d4c19b1",
|
|
5
|
+
"amalgam_url": "https://github.com/howsoai/amalgam/releases/tag/51.2.1",
|
|
6
6
|
"amalgam_build_date": "",
|
|
7
7
|
"amalgam_display_title": ""
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|