Position: Home page » Ethereum » Ethereum cudaerror

Ethereum cudaerror

Publish: 2021-05-28 21:24:59
1. GPU mining

Hardware

algorithm is difficult to solve in memory. In order to make DAG suitable for memory, each GPU needs 1-2gb of memory. If you get an error prompt: error GPU mining. GPU memory fragmentation? It means you don't have enough memory. GPU mining software is based on OpenCL, amd GPU will be faster than NVIDIA GPU of the same level. ASIC and FPGA are relatively inefficient, so they are blocked. To get OpenCL for chip integration platform, try:
amd SDK OpenCL
NVIDIA CUDA OpenCL
Ubuntu Linux settings

for this quick guide, you will need Ubuntu 14.04 or 15.04 and fglrx image driver. You can also use NVIDIA drives and other platforms, but you have to find your own way to get an effective OpenCL installation, such as genoil's ethminer fork
if you are using 15.04, go to & quot; Software and updates 〉 extra drives & quot; Set to & quot; Use the video driver & quot; from fglrx for AMD graphics accelerator
if you are using 14.04, go to & quot; Software and updates 〉 extra drives & quot; Set to & quot; Use the video driver & quot; from fglrx for AMD graphics accelerator;. Unfortunately, for some people, this method may not work, because there is a known program error in Ubuntu 14.04.02 that will prevent you from switching to the exclusive graphics drive necessary for GPU mining
therefore, if you encounter this program error, go to & quot; "Software and update" update & quot; Select & quot; Pre release reliable update proposal & quot;. Then, back to & quot; Software and updates 〉 extra drives & quot; Set to & quot; Use the video driver & quot; from fglrx for AMD graphics accelerator;. After restarting, it's worth checking that the drive is now properly installed (for example, by going to & quot; Additional drives & quot;)
no matter what you do, if you are using 14.04.02, once installed, do not change the drive or drive configuration. For example, the use of aticonfig – initial (especially the - F, - force option) will & quot; Destruction & quot; Your settings. If you accidentally change the configuration, you will need to uninstall the drive, restart, install the drive again and restart.
2. Cudaerror in CUDA_ T this category can record CUDA errors. Almost all CUDA library functions return a cudaerror_ t
using handle in GPU high performance programming_ Error macro function to process cudaerror
static void handleerror (cudaerror) returned by each function_ t err,const char *file,int line ) {
if (err != cudaSuccess) {
printf( "% s in %s at line %d\ n", cudaGetErrorString( err ), file, line );< br />exit( EXIT_ FAILURE );< br />}
}
3.

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


t="code" l="cpp">/
#definegetLastCudaError(msg)_getLastCudaError(msg,_FILE_,_LINE_)

inlinevoid__getLastCudaError(constchar*errorMessage,constchar*file,constintline)
{
cudaError_terr=cudaGetLastError();< br />
if(cudaSuccess!= err)
{
fprintf(stderr,"%s(%i):getLastCudaError()CUDAerror:%s:(%d)%s. ",
file,line,errorMessage,(int)err,cudaGetErrorString(err));< br />DEVICE_RESET
exit(EXIT_FAILURE);< br />}
}
#endif

kernel<& <> lt; 1.1>> gt;& gt;();< br />getLastCudaError("ErrorinCalling'kernel'");

4. Today, as soon as the server was set up, the program couldn't run. At that time, I almost scared myself to pee
error type: CUDA_ ERROE_ OUT_ OF_ MEMORY
E tensorflow/stream_ executor/cuda/cuda_ driver.cc:924] failed to alloc 17179869184 bytes on host: CUDA_ ERROR_ OUT_ OF_ MEMORY
W ./tensorflow/core/common_ runtime/gpu/pool_ Allocator. H: 195] could not allocate pinned host memory of size: 17179869184
killed

in fact, it is very easy to understand, which roughly means that the GPU size of the server is m
tensorflow, only n (n & lt; M)
in other words, tensorflow tells you that you can't apply for all the resources of GPU, and then quit.
solution:
find the session in the code
Add

config = tf.configproto (allow) before the session definition_ soft_ Placement = true)
# accounting for 70% of GPU resources at most
GPU_ options = tf.GPUOptions(per_ process_ gpu_ memory_ (fraction = 0.7)
# instead of giving tensorflow all GPU resources at first, it will increase
config.gpu on demand_ options.allow_ Growth = true
sess = TF. Session (config = config)
this is no problem

in fact, tensorflow is a greedy tool
even if you use device_ ID specifies that the GPU will also occupy the video memory resources of other GPUs. You must
execute export CUDA before executing the program_ VISIBLE_ Devices = n (n is the visible server number)
to execute Python code. Py will not occupy other GPU resources
recently, before tensorflow, it was Cafe
this week, for three consecutive days, people in the laboratory reported that they occupied too much server resources. It's really tiring. Just use the above method
that is, to execute export CUDA before executing code_ VISIBLE_ Devices = n
only one or a few GPUs can be seen, and other GPUs can't be seen
5. I used the case of CUDA by example to compile. I also encountered this problem and changed the following header file & quot; book.h" It passed. By the way, let's see if the CUDA file attribute of CUDA is CUDA C / C++
6.

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


t="code" l="cpp">/
#definegetLastCudaError(msg)_getLastCudaError(msg,_FILE_,_LINE_)

inlinevoid__getLastCudaError(constchar*errorMessage,constchar*file,constintline)
{
cudaError_terr=cudaGetLastError();< br />
if(cudaSuccess!= err)
{
fprintf(stderr,"% s(%i):getLastCudaError()CUDAerror:%s:(%d)%s. ",< br />file,line,errorMessage,(int)err,cudaGetErrorString(err));< br />DEVICE_RESET
exit(EXIT_FAILURE);< br />}
}
#endif

kernel<& <> lt; 1.1>> gt;& gt;();< br />getLastCudaError(" ErrorinCalling kernel'& quot;);

7. The r6034 error may be that you have installed anti spyware software such as spyware doctor. After installing such software, it will appear in C: &# 92; windows\ system32\ A file named msvcr80.dll appears in the directory. When the software is unloaded, msvcr80.dll will stay in the directory. You can try C: &; windows\ system32\ Directory of msvcr80.dll to delete, if equipped with 360 security guard such software, delete may appear a prompt, be sure to select allow, otherwise cannot delete. Then click the start menu in the lower left corner of the desktop, click Run, enter CMD, and then enter for% 1 in (% windir% & # 92; system32\*. DLL) do Regsvr32 / S% 1, if you are afraid of wrong input, you can it, and then click enter CMD to pop up the upper left corner of the window C: &# 92;, Click Edit paste, enter and wait for the screen to run. After that, wait for a while until the hard disk indicator no longer flashes, and then restart
8. Internet search "colorful word show", which you need.
9. If you are in Chinese medicine, do not go to see if you are in Chinese medicine or surgery. Which Chinese medicine hospital is so divided?
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750