Giter VIP home page Giter VIP logo

Comments (9)

mondus avatar mondus commented on June 17, 2024

Agreed. This should also include upgrading to VS2015.

from flamegpu.

ptheywood avatar ptheywood commented on June 17, 2024

CUDA 8.0 issues warnings for SM_20 and SM_21 as they are deprecated.

When rebuilding in Visual Studio, nvcc is invoked with the -clean flag to delete temporary files, without specifying any target architectures. This causes the default architectures to be used, which raises the warning.

This seems to be controlled by the CUDA 8.0 visual studio integration files, rather than anything in FLAME GPU itself.
-Wno-deprecated-gpu-targets can be used to suppress the warnings via Solution Properties > CUDA C/C++ > Command Line > Additional Options however this would also suppress the warning for any users targeting the deprecated architectures.

from flamegpu.

ptheywood avatar ptheywood commented on June 17, 2024

@mondus Which SM's do we want to be included by default in the updated project files?

Currently we use

compute_20,sm_20;compute_30,sm_30;compute_35,sm_35;compute_50,sm_50

Obviously we want to add sm_60 for full pascal support.

The main question is should we remove sm_20 as it is deprecated or not?

from flamegpu.

ptheywood avatar ptheywood commented on June 17, 2024

Used sed to make these changes via:

find ./examples -type f -name "*.vcxproj" -exec sed -i 's/ToolsVersion="12.0"/ToolsVersion="14.0"/g' {} +
find ./examples -type f -name "*.vcxproj" -exec sed -i 's/<PlatformToolset>v120<\/PlatformToolset>/<PlatformToolset>v140<\/PlatformToolset>/g' {} +
find ./examples -type f -name "*.vcxproj" -exec sed -i 's/CUDA 7.0./CUDA 8.0./g' {} +
find ./examples -type f -name "*.vcxproj" -exec sed -i 's/compute_20,sm_20;compute_30,sm_30;compute_35,sm_35;compute_50,sm_50/compute_30,sm_30;compute_35,sm_35;compute_50,sm_50;compute_60,sm_60/g' {} +

find ./examples -type f -name "Makefile" -exec sed -i 's/cuda-7.5/cuda-8.0/g' {} +
find ./examples -type f -name "Makefile" -exec sed -i 's/20 30 35 37 50 52/30 35 37 50 60/g' {} +

https://gist.github.com/ptheywood/0a73ebb170731f46f0efdfb60fa5d78d

from flamegpu.

ptheywood avatar ptheywood commented on June 17, 2024

Opening The viles in VS 2015 does add additional changes to the solution files it seems, which should be included.

from flamegpu.

ptheywood avatar ptheywood commented on June 17, 2024

ef492f1 adds the changes from opening each solution in VS 2015

from flamegpu.

willfurnass avatar willfurnass commented on June 17, 2024

Can't compile examples for current HEAD of master (e2c2c5b) with CUDA 9.0.176 as compute_20 no longer supported.

nvcc fatal   : Unsupported gpu architecture 'compute_20'

from flamegpu.

ptheywood avatar ptheywood commented on June 17, 2024

The current HEAD of master is probably still targeting CUDA 7 or 7.5, with our next release moving the visual studio project files to CUDA 8 (so far). Included in this update is the removal of SM20 from the default list of architectures being built, as it was deprecated for CUDA 8.

We have not yet tested FLAME GPU using CUDA 9.0, however the issue of SM20 and SM21 being removed should be the only reason it won't compile.

CUDA 9.0 will potentially produce many new warnings regarding deprecated functions, which we should attempt to resolve.

The rc1.5/alternate-makefiles branch (currently 3022b8a) includes heavily-revised makefiles which should only builds for SM30 and above, so should build with CUDA 9, though this is untested.

from flamegpu.

mondus avatar mondus commented on June 17, 2024

Aim is for CUDA 9

from flamegpu.

Related Issues (20)

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.