[DEBT] Rename .h|.hpp|.cuh|.cu|.cpp Files Properly In Our Cuml C++ ...
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} rapidsai / cuml Public 
LabelsIssues related to building the code or dependenciesCUDA issueIssues related to debtGood for newcomersChange current process or code
teju85opened on Feb 13, 2020
- Notifications You must be signed in to change notification settings
- Fork 612
- Star 5.1k
- Code
- Issues 839
- Pull requests 49
- Actions
- Projects 2
- Wiki
- Security
Uh oh!
There was an error while loading. Please reload this page.
- Insights
Description
Currently, they are just all over the place! I propose the following rule-of-thumb:
- If a header file contains cuda kernels and/or device methods, then it should be a .cuh.
- Else, it should be a .hpp (if the current header file is already named as a .h, feel free to leave it as it is, in order to minimize the amount of ripple changes this will cause).
- If a header file is used to declare our C interface, it should be a .h
- If the header file includes a .cuh, then it should be a .cuh as well
- If a source includes a .cuh, then it should be a .cu, else it should be a .cpp
- All source files defining our C interface should be .c
This will certainly help us in reducing compilation time as well (if we end up cleaning some of the .cu files and renaming them to .cpp).
Metadata
Metadata
Assignees
divyegala
prtksh
Labels
Issues related to building the code or dependenciesCUDA issueIssues related to debtGood for newcomersChange current process or codeType
TaskProjects
No projectsMilestone
No milestoneRelationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Từ khóa » .h .cpp .hpp
-
H Or *.hpp For Your Class Definitions - C++ - Stack Overflow
-
Why .h Is More Widely Used Than .hpp For C++ Header Files - Reddit
-
Thoughts On Header File Extensions: .h Vs .hpp - Embedded Artistry
-
HPP – The C++ Header File - Online Converter
-
HPP File Extension - What Is .hpp And How To Open? - ReviverSoft
-
Header Files (C++) - Microsoft Docs
-
Why Don't C++ Standard Headers' Names End With '.h' Or '.hpp'? - Quora
-
C++ Header File (*.h, *.hpp) - RAD Studio - Embarcadero DocWiki
-
Header File Extension .h Or .hpp - C++ Forum
-
What Is The Difference Between .h And .HPP Files? - AnswersToAll
-
C++ – .c Vs .cc Vs. .cpp Vs .hpp Vs .h Vs .cxx - ITecNote
-
Interface (.hpp) Versus Implementation (.cpp) Files (and Why They Exist)
-
Qt Why Use .h And .cpp Rather Than .hpp? - Qt Forum