Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
SexhackmeStreamer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
SexhackmeStreamer
Commits
d162abdb
Commit
d162abdb
authored
Oct 01, 2024
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cupy support for CUDA
parent
482c72a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
shmvcam.py
shmvcam.py
+10
-1
No files found.
shmvcam.py
View file @
d162abdb
...
@@ -6,7 +6,16 @@ from __future__ import annotations
...
@@ -6,7 +6,16 @@ from __future__ import annotations
import
argparse
import
argparse
import
pyvirtualcam
import
pyvirtualcam
from
pyvirtualcam
import
PixelFormat
from
pyvirtualcam
import
PixelFormat
import
numpy
as
np
try
:
import
cupy
as
np
if
not
np
.
cuda
.
is_available
():
print
(
"No CUDA detected, using NumPy"
)
import
numpy
as
np
else
:
print
(
"CUDA detected, using CuPy for NumPY"
)
except
:
print
(
"No CUDA detected, using NumPy"
)
import
numpy
as
np
import
time
import
time
import
asyncio
import
asyncio
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment