Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastMoE
Commits
6212aa28
"src/diffusers/schedulers/scheduling_ddpm_parallel.py" did not exist on "62b3c9e06ab13a4b79f2f7e5a12133c52541e232"
Commit
6212aa28
authored
Jan 03, 2021
by
Jiezhong Qiu
Browse files
update
parent
27af1828
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pytorch/cuda/cuda_stream_manager.h
pytorch/cuda/cuda_stream_manager.h
+3
-1
No files found.
pytorch/cuda/cuda_stream_manager.h
View file @
6212aa28
...
...
@@ -16,11 +16,13 @@ public:
which means pytorch always sets the correct device for us.
But for safety, we still manually set device to the desired one.
*/
/*
int current_device;
checkCudaErrors(cudaGetDevice(¤t_device));
printf("CudaStreamManager construnctor called, get device %d, set device %d\n", current_device, device);
*/
checkCudaErrors
(
cudaSetDevice
(
device
));
streams
=
new
cudaStream_t
[
num_expert
];
checkCudaErrors
(
cublasCreate
(
&
handle
));
for
(
size_t
i
=
0
;
i
<
num_expert
;
++
i
)
{
...
...
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