Skip to content

Remove unused and static global parameters - #5

Merged
bstefanuk merged 23 commits into
move-common-to-modulefrom
global-removal-unused-and-static
Feb 11, 2025
Merged

bstefanuk merged 23 commits into
move-common-to-modulefrom
global-removal-unused-and-static

Conversation

@bstefanuk

Copy link
Copy Markdown
Owner

No description provided.

@@ -42,7 +42,8 @@
from .Toolchain.Assembly import AssemblyToolchain
from .Toolchain.Source import SourceToolchain
from .Common import globalParameters, HR, print1, print2, \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume removing globalParams isn't in scope.

for logicFileName in logicFiles:
(scheduleName, _, problemType, _, exactLogic, newLibrary) \
= LibraryIO.parseLibraryLogicFile(logicFileName, cxxCompiler)
if problemType["DataType"].isHalf():

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was this replaced with?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only ever set not ever used.

clientExe = ClientExecutable.getClientExecutable(cxxCompiler, cCompiler, buildDir)
for configFile in configPaths:
runScriptFile.write("{} --config-file {} {}\n".format(clientExe, configFile, globalParameters["ClientArgs"]))
runScriptFile.write("{} --config-file {}\n".format(clientExe, configFile))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can we remove args here?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClientArgs is only ever an empty string

# Treat ranges as pile of exacts:
for rsize in rangeSize.problemSizes:
self.exactProblemSizes.add(tuple(rsize))
else:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We never take the else branch?

@bstefanuk bstefanuk Feb 10, 2025 •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, never, "ExpandRanges" is only ever set to True, and isn't overridden in any logic files.

@bstefanuk
bstefanuk merged commit 2b4402e into move-common-to-module Feb 11, 2025
@bstefanuk
bstefanuk deleted the global-removal-unused-and-static branch February 11, 2025 00:02
bstefanuk added a commit that referenced this pull request Feb 13, 2025
* feat: no global working path with asserts

* fix: bad import statement

* fix: different build_tmp dir in cmake than tensile

* fix: incorrect pathing in Tensile benchmarking

* fix: string wrap paths for assert checks

* fix: ensure all paths are built

* fix: missing global parameter warning

* fix: ensure library logic path is built

* fix: client writer paths

* fix: use child path for client libraries

* remove PrintTiming from global params

* remove another assert

* restore PrintTiming

* fix: reviewer comments

* refactor: use env var for @timing decorator

* refactor: remove library print debug

* refactor: remove exit after kernel gen option

* style: remove commented code

* refactor: move common to a module

* feat: remove 'CustomKernelDirectory' global param

* fix: amd clang version global param

* fix: second pass on amd clang version

* fix: imports for bolted on ops scripts

* chore: remove safety asserts

* chore: create more separation in Common

* fix: missing line at eof

* fix: basic reviewer comments

* chore: move global dependenct funcs to GlobalParameters.py

* fix: pass global params to splitArchs

* style: don't format caps funcs

* fix: bad import

* Add TensileLogic program to verify matrix instructions (#3)

* Remove unused and static global parameters (#5)

* fix: purge library-print-debug
* feat: make build paths static
* feat: remove 'SortProblems' global param
* feat: remove 'ExpandRanges' global param
* feat: remove 'WavefrontWidth' global param
* feat: remove 'ValidateLibrary' global param
* feat: remove 'EnableHalf' and 'ClientArgs' global params
* feat: prefer profile decorator over 'Profiler' global param
* chore: remove 'LibraryPrintDebug' from build_client.yaml
* feat: remove 'MaxFileName' from global params

* Update preferred search paths (#4)

* fix: remove files updated by precommit in merge

* fix: remove log file

* Copyright update

---------

Co-authored-by: David Dixon <david.dixon@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants