Giter VIP home page Giter VIP logo

test's Introduction

Reproduce a problem

Reproduce the problem:

/usr/local/cuda-11.5/bin/nvcc test_nvcc.cu -O3 -arch=sm_80
/usr/local/cuda-11.5/bin/ncu --section regex:'^(?!Nvlink)' -f ./a.out

CopyKernel1 get warning:

    WRN   Uncoalesced global access, expected 2097152 sectors, got 4194304 (2.00x) at PC 0x7fb694faf560
    ----- --------------------------------------------------------------------------------------------------------------
    WRN   Uncoalesced global access, expected 2097152 sectors, got 4194304 (2.00x) at PC 0x7fb694faf570
    ----- --------------------------------------------------------------------------------------------------------------

with cuda-11.2, everything is ok

with cuda-11.3 or newer:

CopyKernel0 works normally, has a 64-bit load and a 64-bit store, but in CopyKernel1 the float2 64-bit store was split to two 32-bit store, which caused a Uncoalesced global access warning in nsight-compute. the only difference between CopyKernel0 and CopyKernel1 is the forloop int row = blockIdx.x or int64_t row = blockIdx.x

the CopyKernel0:

image-20211203104609571

the CopyKernel1:

image-20211203104443613

test's People

Contributors

guo-ran avatar

Watchers

 avatar  avatar

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.