GeNN  4.0.0
GPU enhanced Neuronal Networks (GeNN)
CodeGenerator::CUDA::Preferences Struct Reference

Preferences for CUDA backend. More...

#include <backend.h>

Inheritance diagram for CodeGenerator::CUDA::Preferences:
CodeGenerator::PreferencesBase

Public Member Functions

 Preferences ()
 

Public Attributes

bool showPtxInfo = false
 Should PTX assembler information be displayed for each CUDA kernel during compilation. More...
 
DeviceSelect deviceSelectMethod = DeviceSelect::OPTIMAL
 How to select GPU device. More...
 
unsigned int manualDeviceID = 0
 If device select method is set to DeviceSelect::MANUAL, id of device to use. More...
 
BlockSizeSelect blockSizeSelectMethod = BlockSizeSelect::OCCUPANCY
 How to select CUDA blocksize. More...
 
KernelBlockSize manualBlockSizes
 If block size select method is set to BlockSizeSelect::MANUAL, block size to use for each kernel. More...
 
std::string userNvccFlags = ""
 NVCC compiler options for all GPU code. More...
 
- Public Attributes inherited from CodeGenerator::PreferencesBase
bool optimizeCode = false
 Generate speed-optimized code, potentially at the expense of floating-point accuracy. More...
 
bool debugCode = false
 Generate code with debug symbols. More...
 
std::string userCxxFlagsGNU = ""
 C++ compiler options to be used for building all host side code (used for unix based platforms) More...
 
std::string userNvccFlagsGNU = ""
 NVCC compiler options they may want to use for all GPU code (used for unix based platforms) More...
 
plog::Severity logLevel = plog::info
 Logging level to use for code generation. More...
 

Detailed Description

Preferences for CUDA backend.

Constructor & Destructor Documentation

◆ Preferences()

CodeGenerator::CUDA::Preferences::Preferences ( )
inline

Member Data Documentation

◆ blockSizeSelectMethod

BlockSizeSelect CodeGenerator::CUDA::Preferences::blockSizeSelectMethod = BlockSizeSelect::OCCUPANCY

How to select CUDA blocksize.

◆ deviceSelectMethod

DeviceSelect CodeGenerator::CUDA::Preferences::deviceSelectMethod = DeviceSelect::OPTIMAL

How to select GPU device.

◆ manualBlockSizes

KernelBlockSize CodeGenerator::CUDA::Preferences::manualBlockSizes

If block size select method is set to BlockSizeSelect::MANUAL, block size to use for each kernel.

◆ manualDeviceID

unsigned int CodeGenerator::CUDA::Preferences::manualDeviceID = 0

If device select method is set to DeviceSelect::MANUAL, id of device to use.

◆ showPtxInfo

bool CodeGenerator::CUDA::Preferences::showPtxInfo = false

Should PTX assembler information be displayed for each CUDA kernel during compilation.

◆ userNvccFlags

std::string CodeGenerator::CUDA::Preferences::userNvccFlags = ""

NVCC compiler options for all GPU code.


The documentation for this struct was generated from the following file: