[DEBT] Rename .h|.hpp|.cuh|.cu|.cpp Files Properly In Our Cuml C++ ...
Có thể bạn quan tâm
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
- Notifications You must be signed in to change notification settings
- Fork 535
- Star 4.3k
- Code
- Issues 859
- Pull requests 58
- Actions
- Projects 2
- Security
- Insights
Description
teju85openedon Feb 13, 2020
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).
Activity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to commentMetadata
Assignees
No one assignedLabels
Issues related to building the code or dependenciesCUDA issueIssues related to debtGood for newcomersChange current process or codeType
No typeProjects
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 .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
-
What Is Difference Between ".h", ".hpp" And "header File Not Having ...
-
HPP File Extension - What Is .hpp And How To Open? - ReviverSoft
-
C++ Header File (*.h, *.hpp) - RAD Studio - Embarcadero DocWiki
-
Add Command To Switch Between Header (.h, .hpp) And ...
-
Why Don't C++ Standard Headers' Names End With '.h' Or '.hpp'? - Quora
-
The Difference Between Hpp And H - Actorsfit
-
HPP – The C++ Header File - Online Converter
-
Consider .hpp And .hxx Files To Be Header Files Too (C++) · Issue #1079
-
What Is The Difference Between .h And .HPP Files? - AnswersToAll
-
The Difference Between H, Cpp And Hpp Header Files - Karthi Softek