GithubHelp home page GithubHelp logo

cuda_learning's Introduction

cuda_learning's People

Contributors

ifromeast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cuda_learning's Issues

softmax_forward_kernel2精度不对齐

softmax_forward_kernel2我本地运行为什么精度不对呀
是因为分段求和导致的嘛?
将这一行改为double还是不行


报错如下:

Using kernel 2
Largest output is: 1.000000
Checking block size 32.
0.000006 0.000006
0.000009 0.000009
0.000021 0.000021
0.000007 0.000007
0.000010 0.000010
Mismatch of out at 82072: CPU_ref: 0.758795 vs GPU: 0.758635
Mismatch of out at 102789: CPU_ref: 0.997274 vs GPU: 0.996691
Mismatch of out at 254777: CPU_ref: 0.999091 vs GPU: 0.998002
Mismatch of out at 520595: CPU_ref: 0.999906 vs GPU: 0.999745
Mismatch of out at 565770: CPU_ref: 0.998760 vs GPU: 0.998198
Mismatch of out at 655980: CPU_ref: 0.998224 vs GPU: 0.997693
Mismatch of out at 969710: CPU_ref: 0.989513 vs GPU: 0.989766
Mismatch of out at 1086046: CPU_ref: 0.989720 vs GPU: 0.989867
Mismatch of out at 1112891: CPU_ref: 0.999857 vs GPU: 0.999680
Mismatch of out at 1256552: CPU_ref: 0.999830 vs GPU: 0.999130

Process finished with exit code 1

这是我的设备信息:
屏幕截图 2024-08-11 201148

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_19:00:59_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.