Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moxin-runner: explicitly detect CUDA on Linux #219

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

kevinaboos
Copy link
Contributor

Depends on #200

Ready to merge once #200 is merged.

The WasmEdge `install_v2.sh` script currently treats the `--noavx`
option as a hard override that bypasses CUDA detection.
Thus, we must manually check for CUDA first, and if CUDA is detected,
we must *not* pass in the `--noavx` option.

We now only pass in the `--noavx` option if CUDA is not found
*and* if the CPU doesn't support AVX512.

It is not clear what WasmEdge will do if CUDA is detected but the
runtime determines that the graphics card is insufficient for its needs
-- will it revert back to CPU instructions that require AVX512??
@kevinaboos kevinaboos requested a review from jmbejar August 15, 2024 20:24
@jmbejar jmbejar merged commit 284bfa7 into moxin-org:dev Aug 16, 2024
5 checks passed
@kevinaboos kevinaboos deleted the linux_cuda_support branch August 16, 2024 02:55
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