Skip to content

Instantly share code, notes, and snippets.

View mlzeng's full-sized avatar

曾明亮 mlzeng

  • Beijing Academy of Artificial Intelligence
  • Beijing, China
View GitHub Profile
@zzh1996
zzh1996 / solve_mod_mathematica.sage
Last active May 12, 2021 09:03
solve_mod_mathematica
from wolframclient.evaluation import WolframLanguageSession
from wolframclient.language import wl
def solve_mma(eqn, modulus):
if eqn.number_of_arguments() != 1:
raise NotImplementedError('Not univariate')
if eqn.is_polynomial(eqn.args()[0]):
poly = eqn
elif eqn.is_relational() and eqn.operator() is operator.eq:
poly = eqn.lhs() - eqn.rhs()
@Brainiarc7
Brainiarc7 / skylake-tuning-linux.md
Last active September 4, 2024 22:09
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running: