Skip to content

[CUDA] Make cubins const - #23225

Merged
snnn merged 1 commit into
microsoft:mainfrom
mityada:cuda-const-cubins
Jan 1, 2025
Merged

[CUDA] Make cubins const#23225
snnn merged 1 commit into
microsoft:mainfrom
mityada:cuda-const-cubins

Conversation

@mityada

@mityada mityada commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

Description

Make arrays with cubin data const.

Motivation and Context

Non-const arrays are put into the .data section which might cause excessive memory usage in some scenarios. Making cubin arrays const allows them to be put into the .rodata section.

Non-const arrays are put into the .data section which might cause excessive memory usage in some scenarios.
Making cubin arrays const allows them to be put into the .rodata section.
@snnn

snnn commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

/azp run Big Models, Linux Android Emulator QNN CI Pipeline, Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline

@snnn

snnn commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

/azp run Linux OpenVINO CI Pipeline, Linux QNN CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, Windows ARM64 QNN CI Pipeline, Windows CPU CI Pipeline, Windows GPU CUDA CI Pipeline

@snnn

snnn commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

/azp run Windows GPU DML CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows GPU TensorRT CI Pipeline, Windows x64 QNN CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 6 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 5 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 7 pipeline(s).

@mityada

mityada commented Dec 31, 2024

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@snnn
snnn merged commit 0b87bcc into microsoft:main Jan 1, 2025
snnn pushed a commit that referenced this pull request Jan 8, 2025
### Description
Make arrays with cubin data const.


### Motivation and Context
Non-const arrays are put into the .data section which might cause
excessive memory usage in some scenarios. Making cubin arrays const
allows them to be put into the .rodata section.
tarekziade pushed a commit to tarekziade/onnxruntime that referenced this pull request Jan 10, 2025
### Description
Make arrays with cubin data const.


### Motivation and Context
Non-const arrays are put into the .data section which might cause
excessive memory usage in some scenarios. Making cubin arrays const
allows them to be put into the .rodata section.
guschmue pushed a commit that referenced this pull request Jan 12, 2025
### Description
Make arrays with cubin data const.


### Motivation and Context
Non-const arrays are put into the .data section which might cause
excessive memory usage in some scenarios. Making cubin arrays const
allows them to be put into the .rodata section.
ashrit-ms pushed a commit that referenced this pull request Mar 17, 2025
### Description
Make arrays with cubin data const.


### Motivation and Context
Non-const arrays are put into the .data section which might cause
excessive memory usage in some scenarios. Making cubin arrays const
allows them to be put into the .rodata section.
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.

3 participants