cuMemcpyHtoDAsync failed: unspecified launch failure #399
Unanswered
skybocai
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the Flask environment, the Five models in one class is passed into the multithreading as a global variable.An error is reported when running for a long time。
log.info
input memcpy_htod_async: cuMemcpyHtoDAsync failed: unspecified launch failure
[TRT] [E] 1: [context.cpp::nvinfer1::rt::CommonContext::setStream::121] Error Code 1: Cudnn (CUDNN_STATUS_MAPPING_ERROR)
memcpy_dtoh_async to cpu: cuMemcpyDtoHAsync failed: unspecified launch failure
cuStreamSynchronize :cuStreamSynchronize failed: unspecified launch failure
the Trtmodel.py
``
import numpy as np
import tensorrt as trt
import os
import pycuda.driver as cuda
import time
import logging as log
import pycuda.autoinit
TRT_LOGGER = trt.Logger(trt.Logger.WARNING)
cuda.init()
trt.init_libnvinfer_plugins(TRT_LOGGER, '')
import threading
Simple helper data class that's a little nicer to use than a 2-tuple.
class HostDeviceMem(object):
class TrtModel(object):
''
the SCRFD.py
''
from .TrtModel import *
import numpy as np
import os.path as osp
import cv2
import cupy as cp
class SCRFD:
''
Environment (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions