Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File names discussion #323

Open
kroggen opened this issue Aug 20, 2023 · 3 comments
Open

File names discussion #323

kroggen opened this issue Aug 20, 2023 · 3 comments

Comments

@kroggen
Copy link
Contributor

kroggen commented Aug 20, 2023

We need to decide good names for the files on this repo as it may have one file for each implementation

We must choose:

  • the name of the source-code file
  • the command to build (like make run)
  • the name of the compiled file

Here is a suggestion:

run.c      ->  make run      ->  run
run-q8.c   ->  make run-q8   ->  run-q8
run-q4.c   ->  make run-q4   ->  run-q4
run.cu     ->  make cuda     ->  run-cuda
run-q8.cu  ->  make cuda-q8  ->  run-cuda-q8
run-q4.cu  ->  make cuda-q4  ->  run-cuda-q4
run.cl     ->  make opencl   ->  run-opencl
@kroggen
Copy link
Contributor Author

kroggen commented Aug 20, 2023

The problem is that for a single file, like run.c, there are many build commands (make runfast, make runomp...)

Please share your ideas

@kroggen
Copy link
Contributor Author

kroggen commented Aug 20, 2023

One option is to use prefix and suffix

Where the prefix is the name of the source or binary file, and the suffix is the type of build

So, for example:

make run-fast would build the run.c with -Ofast
make run-q8-omp build the run-q8.c with OpenMP
...

@karpathy
Copy link
Owner

Yep I like that idea, simple and effective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants