如何解决错误:“检测到时钟偏斜"? [英] How to solve error: "Clock skew detected"?

查看:184
本文介绍了如何解决错误:“检测到时钟偏斜"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将自己的OpenCL和Cuda代码上传到 hgpu.org ,因为我没有我的笔记本电脑上有一个图形卡.当我上传代码时,出现以下错误:

I am uploading my OpenCL and Cuda code to hgpu.org because I don't have a graphics card on my laptop. When I upload my code I get the following error:

make: Warning: File `main.cu' has modification time 381 s in the future
make: warning:  Clock skew detected.  Your build may be incomplete.

我知道时钟偏斜是由于我的机器时钟时间和服务器的时钟时间不同造成的,因此我将时间与服务器的时间同步. OpenCL和C ++代码现在可以正常运行,但是Cuda代码仍然给我这个错误.

I know that clock skew is due to difference in my machines clock time and the server's clock time, so I synchronized my time with the server's. The OpenCL and C++ code is running fine now but the Cuda code is still giving me this error.

所以我的问题是:

除了时间同步之外,还有其他原因导致时钟偏斜错误吗?如果有的话我该怎么解决呢?

CUDA代码:

__global__
void test()
{
}

int main()
{
    dim3 gridblock(1,1,1);
    dim3 threadblock(1,1,1);

    test<<<gridblock,threadblock>>>();
    return 0;
}

注意:我也可以提供make文件.

Note: I can provide the make file too.

推荐答案

我要回答我自己的问题.

I am going to answer my own question.

我将以下代码行添加到我的Makefile中,并解决了时钟偏斜"问题:

I added the following lines of code to my Makefile and it fixed the "clock skew" problem:

clean:  
    find . -type f | xargs touch
    rm -rf $(OBJS)

这篇关于如何解决错误:“检测到时钟偏斜"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆